pub struct CmdHeader {
pub cmd: i32,
pub tick: i32,
pub compressed: bool,
pub body_size: u32,
}Expand description
Header for a demo command in the stream.
Each command in the .dem file is prefixed with this header:
(varint cmd | IS_COMPRESSED, varint tick, varint body_size).
Fields§
§cmd: i32Command type (one of the dem::* constants).
tick: i32Game tick this command applies to.
compressed: boolWhether the body is Snappy-compressed.
body_size: u32Size of the body in bytes (before decompression).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CmdHeader
impl RefUnwindSafe for CmdHeader
impl Send for CmdHeader
impl Sync for CmdHeader
impl Unpin for CmdHeader
impl UnsafeUnpin for CmdHeader
impl UnwindSafe for CmdHeader
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