Struct tf_demo_parser::demo::header::Header [−][src]
pub struct Header { pub demo_type: String, pub version: u32, pub protocol: u32, pub server: String, pub nick: String, pub map: String, pub game: String, pub duration: f32, pub ticks: u32, pub frames: u32, pub sigon: u32, }
Fields
demo_type: String
version: u32
protocol: u32
server: String
nick: String
map: String
game: String
duration: f32
ticks: u32
frames: u32
sigon: u32
Trait Implementations
Read the type from stream
The number of bits that will be read or None if the number of bits will change depending on the bit stream Read more
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
Auto Trait Implementations
impl RefUnwindSafe for Header
impl UnwindSafe for Header
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