pub struct PendingSection<'a> {
pub kind: u32,
pub version: u32,
pub alignment_log2: u8,
pub payload: &'a [u8],
}Expand description
Description of one section to include in a snapshot.
Every field is opaque to the encoder. kind and version are passed
through unchanged; alignment_log2 controls payload alignment relative
to the snapshot’s start; payload is the section’s raw bytes.
§Performance
perf: unspecified; this is a metadata struct.
Fields§
§kind: u32Section kind to record in the entry.
version: u32Section version to record in the entry.
alignment_log2: u8log2 of the requested payload alignment; capped at
MAX_ALIGNMENT_LOG2.
payload: &'a [u8]Section payload bytes.
Trait Implementations§
Source§impl<'a> Clone for PendingSection<'a>
impl<'a> Clone for PendingSection<'a>
Source§fn clone(&self) -> PendingSection<'a>
fn clone(&self) -> PendingSection<'a>
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 moreimpl<'a> Copy for PendingSection<'a>
Auto Trait Implementations§
impl<'a> Freeze for PendingSection<'a>
impl<'a> RefUnwindSafe for PendingSection<'a>
impl<'a> Send for PendingSection<'a>
impl<'a> Sync for PendingSection<'a>
impl<'a> Unpin for PendingSection<'a>
impl<'a> UnsafeUnpin for PendingSection<'a>
impl<'a> UnwindSafe for PendingSection<'a>
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