pub struct MessageInfo {
pub index: usize,
pub cmd: i32,
pub cmd_name: String,
pub tick: i32,
pub compressed: bool,
pub body_size: u32,
pub offset: usize,
}Expand description
Information about a demo message in the command stream.
Fields§
§index: usizeZero-based ordinal position in the command stream.
cmd: i32Command type (one of the dem::* constants).
cmd_name: StringHuman-readable command name.
tick: i32Game tick this command applies to.
compressed: boolWhether the body is Snappy-compressed.
body_size: u32Body size in bytes (before decompression).
offset: usizeAbsolute byte offset from the start of the file.
Trait Implementations§
Source§impl Clone for MessageInfo
impl Clone for MessageInfo
Source§fn clone(&self) -> MessageInfo
fn clone(&self) -> MessageInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MessageInfo
impl Debug for MessageInfo
Auto Trait Implementations§
impl Freeze for MessageInfo
impl RefUnwindSafe for MessageInfo
impl Send for MessageInfo
impl Sync for MessageInfo
impl Unpin for MessageInfo
impl UnsafeUnpin for MessageInfo
impl UnwindSafe for MessageInfo
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