#[non_exhaustive]pub enum FormatState {
Empty,
Snapshot(Vec<u8>),
Structured(FormatSnapshot),
}Expand description
Opaque initialized state snapshot.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Empty
Empty state used for bootstrapping and tests.
Snapshot(Vec<u8>)
Opaque engine bytes, reserved for a future structured snapshot.
Structured(FormatSnapshot)
Structured snapshot used to initialize each session state.
Trait Implementations§
Source§impl Clone for FormatState
impl Clone for FormatState
Source§fn clone(&self) -> FormatState
fn clone(&self) -> FormatState
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 moreSource§impl Debug for FormatState
impl Debug for FormatState
Source§impl Default for FormatState
impl Default for FormatState
Source§fn default() -> FormatState
fn default() -> FormatState
Returns the “default value” for a type. Read more
impl Eq for FormatState
Source§impl PartialEq for FormatState
impl PartialEq for FormatState
impl StructuralPartialEq for FormatState
Auto Trait Implementations§
impl Freeze for FormatState
impl RefUnwindSafe for FormatState
impl Send for FormatState
impl Sync for FormatState
impl Unpin for FormatState
impl UnsafeUnpin for FormatState
impl UnwindSafe for FormatState
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