Enum wasm_run::prelude::Message [−][src]
pub enum Message {
CompilerArtifact(Artifact),
CompilerMessage(CompilerMessage),
BuildScriptExecuted(BuildScript),
BuildFinished(BuildFinished),
TextLine(String),
// some variants omitted
}Expand description
A cargo message
Variants
CompilerArtifact(Artifact)The compiler generated an artifact
Tuple Fields of CompilerArtifact
0: ArtifactCompilerMessage(CompilerMessage)The compiler wants to display a message
Tuple Fields of CompilerMessage
BuildScriptExecuted(BuildScript)A build script successfully executed.
Tuple Fields of BuildScriptExecuted
0: BuildScriptBuildFinished(BuildFinished)The build has finished.
This is emitted at the end of the build as the last message. Added in Rust 1.44.
Tuple Fields of BuildFinished
TextLine(String)A line of text which isn’t a cargo or compiler message. Line separator is not included
Tuple Fields of TextLine
0: StringImplementations
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
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Message, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Message, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Message
impl UnwindSafe for Message
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more
Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more
Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s. Read more
Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s. Read more
type Output = T
type Output = T
Should always be Self