Enum tf_demo_parser::demo::message::Message [−][src]
pub enum Message<'a> {}Show 28 variants
Empty, File(FileMessage), NetTick(NetTickMessage), StringCmd(StringCmdMessage), SetConVar(SetConVarMessage), SigOnState(SignOnStateMessage), Print(PrintMessage), ServerInfo(Box<ServerInfoMessage>), ClassInfo(ClassInfoMessage), SetPause(SetPauseMessage), CreateStringTable(CreateStringTableMessage<'a>), UpdateStringTable(UpdateStringTableMessage<'a>), VoiceInit(VoiceInitMessage), VoiceData(VoiceDataMessage<'a>), ParseSounds(ParseSoundsMessage<'a>), SetView(SetViewMessage), FixAngle(FixAngleMessage), BspDecal(BSPDecalMessage), UserMessage(UserMessage<'a>), EntityMessage(EntityMessage<'a>), GameEvent(GameEventMessage), PacketEntities(PacketEntitiesMessage), TempEntities(TempEntitiesMessage), PreFetch(PreFetchMessage), Menu(MenuMessage<'a>), GameEventList(GameEventListMessage), GetCvarValue(GetCvarValueMessage), CmdKeyValues(CmdKeyValuesMessage<'a>),
Variants
Tuple Fields of File
0: FileMessage
Tuple Fields of NetTick
Tuple Fields of StringCmd
Tuple Fields of SetConVar
Tuple Fields of SigOnState
Tuple Fields of Print
0: PrintMessage
Tuple Fields of ServerInfo
0: Box<ServerInfoMessage>
Tuple Fields of ClassInfo
Tuple Fields of SetPause
Tuple Fields of CreateStringTable
0: CreateStringTableMessage<'a>
Tuple Fields of UpdateStringTable
0: UpdateStringTableMessage<'a>
Tuple Fields of VoiceInit
Tuple Fields of VoiceData
0: VoiceDataMessage<'a>
Tuple Fields of ParseSounds
0: ParseSoundsMessage<'a>
Tuple Fields of SetView
Tuple Fields of FixAngle
Tuple Fields of BspDecal
Tuple Fields of UserMessage
0: UserMessage<'a>
Tuple Fields of EntityMessage
0: EntityMessage<'a>
Tuple Fields of GameEvent
Tuple Fields of PacketEntities
Tuple Fields of TempEntities
Tuple Fields of PreFetch
Tuple Fields of Menu
0: MenuMessage<'a>
Tuple Fields of GameEventList
Tuple Fields of GetCvarValue
Tuple Fields of CmdKeyValues
0: CmdKeyValuesMessage<'a>
Implementations
pub fn from_type(
message_type: MessageType,
stream: &mut Stream<'a>,
state: &ParserState
) -> Result<Self>
pub fn skip_type(
message_type: MessageType,
stream: &mut Stream<'_>,
state: &ParserState
) -> Result<()>
Trait Implementations
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
fn encode(
&self,
stream: &mut BitWriteStream<'_, LittleEndian>,
state: &ParserState
) -> Result<()>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Message<'a>
impl<'a> UnwindSafe for Message<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more