pub enum LogMessage {
BuildStarted {
cwd: PathBuf,
host: String,
jobs: u32,
profile: String,
rustc_version: String,
rustc_version_verbose: String,
target_dir: PathBuf,
workspace_root: PathBuf,
},
UnitStarted {
package_id: PackageIdSpec,
target: Target,
mode: CompileMode,
index: u64,
elapsed: f64,
},
UnitRmetaFinished {
index: u64,
elapsed: f64,
unblocked: Vec<u64>,
},
UnitSectionStarted {
index: u64,
elapsed: f64,
section: String,
},
UnitSectionFinished {
index: u64,
elapsed: f64,
section: String,
},
UnitFinished {
index: u64,
elapsed: f64,
unblocked: Vec<u64>,
},
Rebuild {
package_id: PackageIdSpec,
target: Target,
mode: CompileMode,
cause: DirtyReason,
},
}Expand description
A log message.
Each variant represents a different type of event.
Variants§
BuildStarted
Emitted when a build starts.
Fields
UnitStarted
Emitted when a compilation unit starts.
Fields
package_id: PackageIdSpecPackage ID specification.
mode: CompileModeThe compilation action this unit is for (check, build, test, etc.).
UnitRmetaFinished
Emitted when a section (e.g., rmeta, link) of the compilation unit finishes.
Fields
UnitSectionStarted
Emitted when a section (e.g., rmeta, link) of the compilation unit starts.
Requires -Zsection-timings to be enabled.
Fields
UnitSectionFinished
Emitted when a section (e.g., rmeta, link) of the compilation unit finishes.
Requires -Zsection-timings to be enabled.
Fields
UnitFinished
Emitted when a compilation unit finishes.
Fields
Rebuild
Emitted when a unit needs to be rebuilt.
Fields
package_id: PackageIdSpecPackage ID specification.
mode: CompileModeThe compilation action this unit is for (check, build, test, etc.).
cause: DirtyReasonReason why the unit is dirty and needs rebuilding.
Implementations§
Source§impl LogMessage
impl LogMessage
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LogMessage
impl RefUnwindSafe for LogMessage
impl Send for LogMessage
impl Sync for LogMessage
impl Unpin for LogMessage
impl UnwindSafe for LogMessage
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
Source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
§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: 344 bytes
Size for each variant:
BuildStarted: 184 bytesUnitStarted: 272 bytesUnitRmetaFinished: 48 bytesUnitSectionStarted: 48 bytesUnitSectionFinished: 48 bytesUnitFinished: 48 bytesRebuild: 344 bytes