struct HeaderExtensionHeader {
extension_type: u32,
length: u32,
}Expand description
Header for a header extension.
Fields§
§extension_type: u32Type code of the header extension.
length: u32Data length.
Trait Implementations§
Source§impl Default for HeaderExtensionHeader
impl Default for HeaderExtensionHeader
Source§fn default() -> HeaderExtensionHeader
fn default() -> HeaderExtensionHeader
Returns the “default value” for a type. Read more
Source§impl OnDiskStruct for HeaderExtensionHeader
impl OnDiskStruct for HeaderExtensionHeader
Source§const ON_DISK_SIZE: usize
const ON_DISK_SIZE: usize
The on-disk size of this structure, in bytes
Source§fn load_from(bytes: &[u8]) -> Result<Self>
fn load_from(bytes: &[u8]) -> Result<Self>
Load this structure from the given slice, in default inherent endianness.
Source§fn store_to(&self, bytes: &mut [u8]) -> Result<()>
fn store_to(&self, bytes: &mut [u8]) -> Result<()>
Store this structure in the given slice, in default inherent endianness.
Source§fn on_disk_size(&self) -> usize
fn on_disk_size(&self) -> usize
Convenience alias for
Self::ON_DISK_SIZE for objectsSource§fn load_from_le(bytes: &[u8]) -> Result<Self>
fn load_from_le(bytes: &[u8]) -> Result<Self>
Load this structure from the given slice. Read more
Source§fn store_to_le(&self, bytes: &mut [u8]) -> Result<()>
fn store_to_le(&self, bytes: &mut [u8]) -> Result<()>
Store this structure in the given slice. Read more
Auto Trait Implementations§
impl Freeze for HeaderExtensionHeader
impl RefUnwindSafe for HeaderExtensionHeader
impl Send for HeaderExtensionHeader
impl Sync for HeaderExtensionHeader
impl Unpin for HeaderExtensionHeader
impl UnsafeUnpin for HeaderExtensionHeader
impl UnwindSafe for HeaderExtensionHeader
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