pub struct MetadataParts {
pub version: u8,
pub config: Config,
pub frame_count: u64,
pub last_frame_len: Option<u64>,
pub raw_lengths: Option<Lengths>,
pub payload_lengths: Option<Lengths>,
}Expand description
External metadata representation. It contains no key and is not self-authenticating.
Persist it in trusted storage and restore with Metadata::from_parts.
Fields§
§version: u8Format identifier; currently FORMAT_VERSION.
config: ConfigObject profile.
frame_count: u64Exact number of nonempty frames.
last_frame_len: Option<u64>Only for a nonempty fixed-framing object. Full final frames are allowed.
raw_lengths: Option<Lengths>Required only for variable logical framing; includes the last frame.
payload_lengths: Option<Lengths>Required only with compression; excludes tags, includes raw fallbacks.
Trait Implementations§
Source§impl Clone for MetadataParts
impl Clone for MetadataParts
Source§impl Debug for MetadataParts
impl Debug for MetadataParts
impl Eq for MetadataParts
Source§impl PartialEq for MetadataParts
impl PartialEq for MetadataParts
impl StructuralPartialEq for MetadataParts
Auto Trait Implementations§
impl Freeze for MetadataParts
impl RefUnwindSafe for MetadataParts
impl Send for MetadataParts
impl Sync for MetadataParts
impl Unpin for MetadataParts
impl UnsafeUnpin for MetadataParts
impl UnwindSafe for MetadataParts
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