pub enum LogMessage {
BuildStarted {
cwd: PathBuf,
host: String,
jobs: u32,
num_cpus: Option<u64>,
profile: String,
rustc_version: String,
rustc_version_verbose: String,
target_dir: PathBuf,
workspace_root: PathBuf,
},
ResolutionStarted {
elapsed: f64,
},
ResolutionFinished {
elapsed: f64,
},
UnitGraphStarted {
elapsed: f64,
},
UnitGraphFinished {
elapsed: f64,
},
UnitRegistered {
package_id: PackageIdSpec,
target: Target,
mode: CompileMode,
platform: String,
index: u64,
features: Vec<String>,
requested: bool,
},
UnitStarted {
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>,
},
UnitFingerprint {
index: u64,
status: FingerprintStatus,
cause: Option<DirtyReason>,
},
}Expand description
A log message.
Each variant represents a different type of event.
Variants§
BuildStarted
Emitted when a build starts.
Fields
ResolutionStarted
Emitted when resolving dependencies starts.
ResolutionFinished
Emitted when resolving dependencies finishes.
UnitGraphStarted
Emitted when unit graph generation starts.
UnitGraphFinished
Emitted when unit graph generation finishes.
UnitRegistered
Emitted when a compilation unit is registered in the unit graph,
right before LogMessage::UnitGraphFinished that Cargo finalizes
the unit graph.
Fields
package_id: PackageIdSpecPackage ID specification.
mode: CompileModeThe compilation action this unit is for (check, build, test, etc.).
platform: StringThe target platform this unit builds for.
It is either a target triple the compiler accepts,
or a file name with the json extension for a custom target.
UnitStarted
Emitted when a compilation unit starts.
Fields
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
UnitFingerprint
Emitted when rebuild fingerprint information is determined for a unit.
Fields
status: FingerprintStatusStatus of the rebuild detection fingerprint of this unit
cause: Option<DirtyReason>Reason why the unit is dirty and needs rebuilding.
Implementations§
Source§impl LogMessage
impl LogMessage
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LogMessage
impl<'de> Deserialize<'de> for LogMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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>
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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: 312 bytes
Size for each variant:
BuildStarted: 200 bytesResolutionStarted: 16 bytesResolutionFinished: 16 bytesUnitGraphStarted: 16 bytesUnitGraphFinished: 16 bytesUnitRegistered: 312 bytesUnitStarted: 24 bytesUnitRmetaFinished: 48 bytesUnitSectionStarted: 48 bytesUnitSectionFinished: 48 bytesUnitFinished: 48 bytesUnitFingerprint: 120 bytes