Struct OffloadRef
pub struct OffloadRef {
pub kind: u8,
pub file: u64,
pub offset: u64,
pub len: u64,
pub crc: u32,
}Expand description
Where an offloaded record’s canonical body lives in the blob area.
Fields§
§kind: u8The record’s kind (crate::record::kind).
file: u64§offset: u64§len: u64§crc: u32CRC-32C of the body.
Implementations§
§impl OffloadRef
impl OffloadRef
pub fn encode(&self, out: &mut Vec<u8>)
pub fn encode(&self, out: &mut Vec<u8>)
Appends the reference as a section record (with its length prefix,
like encode_canonical).
pub fn decode(body: &[u8]) -> DecodeResult<Self>
pub fn decode(body: &[u8]) -> DecodeResult<Self>
Decodes a section record body that starts with OFFLOADED.
Trait Implementations§
§impl Clone for OffloadRef
impl Clone for OffloadRef
§fn clone(&self) -> OffloadRef
fn clone(&self) -> OffloadRef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for OffloadRef
impl Debug for OffloadRef
§impl PartialEq for OffloadRef
impl PartialEq for OffloadRef
impl Copy for OffloadRef
impl Eq for OffloadRef
impl StructuralPartialEq for OffloadRef
Auto Trait Implementations§
impl Freeze for OffloadRef
impl RefUnwindSafe for OffloadRef
impl Send for OffloadRef
impl Sync for OffloadRef
impl Unpin for OffloadRef
impl UnsafeUnpin for OffloadRef
impl UnwindSafe for OffloadRef
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