pub struct RenderContext<'a> {Show 14 fields
pub start_str: String,
pub root_units: Vec<(String, Vec<String>)>,
pub profile: String,
pub total_fresh: u32,
pub total_dirty: u32,
pub unit_data: Vec<UnitData>,
pub concurrency: Vec<Concurrency>,
pub cpu_usage: &'a [(f64, f64)],
pub rustc_version: String,
pub host: String,
pub requested_targets: Vec<String>,
pub jobs: u32,
pub num_cpus: Option<u64>,
pub error: &'a Option<Error>,
}Fields§
§start_str: StringA rendered string of when compilation started.
root_units: Vec<(String, Vec<String>)>A summary of the root units.
Tuples of (package_description, target_descriptions).
profile: StringThe build profile.
total_fresh: u32Total number of fresh units.
total_dirty: u32Total number of dirty units.
unit_data: Vec<UnitData>Time tracking for each individual unit.
concurrency: Vec<Concurrency>Concurrency-tracking information. This is periodically updated while compilation progresses.
cpu_usage: &'a [(f64, f64)]Recorded CPU states, stored as tuples. First element is when the recording was taken and second element is percentage usage of the system.
rustc_version: StringCompiler version info, i.e., rustc 1.92.0-beta.2 (0a411606e 2025-10-31).
host: StringThe host triple (arch-platform-OS).
requested_targets: Vec<String>The requested target platforms of compilation for this build.
jobs: u32The number of jobs specified for this build.
num_cpus: Option<u64>Available parallelism of the compilation environment.
error: &'a Option<Error>Fatal error during the build.
Auto Trait Implementations§
impl<'a> Freeze for RenderContext<'a>
impl<'a> RefUnwindSafe for RenderContext<'a>
impl<'a> Send for RenderContext<'a>
impl<'a> Sync for RenderContext<'a>
impl<'a> Unpin for RenderContext<'a>
impl<'a> UnwindSafe for RenderContext<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 248 bytes