pub struct XRHeader {
pub block_type: BlockType,
pub type_specific: TypeSpecificField,
pub block_length: u16,
}Expand description
XRHeader defines the common fields that must appear at the start of each report block. In typical cases, users of ExtendedReports shouldn’t need to access this. For locally-constructed report blocks, these values will not be accurate until the corresponding packet is marshaled.
Fields§
§block_type: BlockTypeWhich kind of report block follows.
type_specific: TypeSpecificFieldBits whose meaning depends on the block type.
block_length: u16The block’s length in 32-bit words, excluding this header.
Trait Implementations§
impl Eq for XRHeader
Source§impl MarshalSize for XRHeader
impl MarshalSize for XRHeader
Source§fn marshal_size(&self) -> usize
fn marshal_size(&self) -> usize
The number of bytes
Marshal::marshal_to will write for this value.impl StructuralPartialEq for XRHeader
Auto Trait Implementations§
impl Freeze for XRHeader
impl RefUnwindSafe for XRHeader
impl Send for XRHeader
impl Sync for XRHeader
impl Unpin for XRHeader
impl UnsafeUnpin for XRHeader
impl UnwindSafe for XRHeader
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