pub struct RenderContext<'a> {Show 14 fields
pub start: Instant,
pub start_str: &'a str,
pub root_units: &'a [(String, Vec<String>)],
pub profile: &'a str,
pub total_fresh: u32,
pub total_dirty: u32,
pub unit_times: &'a [UnitTime],
pub concurrency: &'a [Concurrency],
pub cpu_usage: &'a [(f64, f64)],
pub rustc_version: &'a str,
pub host: &'a str,
pub requested_targets: &'a [&'a str],
pub jobs: u32,
pub error: &'a Option<Error>,
}Fields§
§start: InstantWhen Cargo started.
start_str: &'a strA rendered string of when compilation started.
root_units: &'a [(String, Vec<String>)]A summary of the root units.
Tuples of (package_description, target_descriptions).
profile: &'a strThe build profile.
total_fresh: u32Total number of fresh units.
total_dirty: u32Total number of dirty units.
unit_times: &'a [UnitTime]Time tracking for each individual unit.
concurrency: &'a [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: &'a strCompiler version info, i.e., rustc 1.92.0-beta.2 (0a411606e 2025-10-31).
host: &'a strThe host triple (arch-platform-OS).
requested_targets: &'a [&'a str]The requested target platforms of compilation for this build.
jobs: u32The number of jobs specified for this build.
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: 184 bytes