pub struct Payload {
pub flags: u32,
pub header_bytes: u32,
pub bytes: Vec<u8>,
}Expand description
A key map’s bytes, ready to be split into extents and written.
Fields§
§flags: u32What goes in the section entry’s flags, which is the form.
The form being in the entry rather than only in the payload is what lets a reader decide whether it wants this key map at all without reading a byte of it.
header_bytes: u32What goes in the section entry’s header_bytes.
bytes: Vec<u8>The whole payload, header first.
Trait Implementations§
impl Eq for Payload
impl StructuralPartialEq for Payload
Auto Trait Implementations§
impl Freeze for Payload
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnsafeUnpin for Payload
impl UnwindSafe for Payload
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