Enum tf_demo_parser::demo::message::usermessage::UserMessage [−][src]
pub enum UserMessage<'a> { SayText2(Box<SayText2Message>), Text(Box<TextMessage>), ResetHUD(ResetHudMessage), Train(TrainMessage), VoiceSubtitle(VoiceSubtitleMessage), Shake(ShakeMessage), Unknown(UnknownUserMessage<'a>), }
Variants
Tuple Fields of SayText2
0: Box<SayText2Message>
Tuple Fields of Text
0: Box<TextMessage>
Tuple Fields of ResetHUD
Tuple Fields of Train
0: TrainMessage
Tuple Fields of VoiceSubtitle
Tuple Fields of Shake
0: ShakeMessage
Tuple Fields of Unknown
0: UnknownUserMessage<'a>
Implementations
Trait Implementations
Read the type from stream
Write the type to stream
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for UserMessage<'a>
impl<'a> !Send for UserMessage<'a>
impl<'a> !Sync for UserMessage<'a>
impl<'a> Unpin for UserMessage<'a>
impl<'a> UnwindSafe for UserMessage<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn encode(
&Self,
&mut BitWriteStream<'_, LittleEndian>,
&ParserState
) -> Result<(), ParseError>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more