#[non_exhaustive]pub enum Message {
CompilerArtifact(Artifact),
CompilerMessage(CompilerMessage),
BuildScriptExecuted(BuildScript),
BuildFinished(BuildFinished),
TextLine(String),
}
Expand description
A cargo message
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CompilerArtifact(Artifact)
The compiler generated an artifact
CompilerMessage(CompilerMessage)
The compiler wants to display a message
BuildScriptExecuted(BuildScript)
A build script successfully executed.
BuildFinished(BuildFinished)
The build has finished.
This is emitted at the end of the build as the last message. Added in Rust 1.44.
TextLine(String)
A line of text which isn’t a cargo or compiler message. Line separator is not included
Implementations§
Source§impl Message
impl Message
Sourcepub fn parse_stream<R: Read>(input: R) -> MessageIter<R> ⓘ
pub fn parse_stream<R: Read>(input: R) -> MessageIter<R> ⓘ
Creates an iterator of Message from a Read outputting a stream of JSON messages. For usage information, look at the top-level documentation.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)