pub enum SnapshotState {
File(FileSnapshotState),
Checkpoint(CheckpointSnapshotState),
}Expand description
Closed snapshot-state variants.
Variants§
File(FileSnapshotState)
Concrete file-backed state.
Checkpoint(CheckpointSnapshotState)
Composite checkpoint state.
Implementations§
Source§impl SnapshotState
impl SnapshotState
Sourcepub const fn as_file(&self) -> Option<&FileSnapshotState>
pub const fn as_file(&self) -> Option<&FileSnapshotState>
Return file state when present.
Sourcepub const fn as_checkpoint(&self) -> Option<&CheckpointSnapshotState>
pub const fn as_checkpoint(&self) -> Option<&CheckpointSnapshotState>
Return checkpoint state when present.
Trait Implementations§
Source§impl Clone for SnapshotState
impl Clone for SnapshotState
Source§fn clone(&self) -> SnapshotState
fn clone(&self) -> SnapshotState
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 SnapshotState
impl Debug for SnapshotState
Source§impl<'de> Deserialize<'de> for SnapshotState
impl<'de> Deserialize<'de> for SnapshotState
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SnapshotState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SnapshotState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SnapshotState
impl PartialEq for SnapshotState
Source§impl Serialize for SnapshotState
impl Serialize for SnapshotState
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SnapshotState
Auto Trait Implementations§
impl Freeze for SnapshotState
impl RefUnwindSafe for SnapshotState
impl Send for SnapshotState
impl Sync for SnapshotState
impl Unpin for SnapshotState
impl UnsafeUnpin for SnapshotState
impl UnwindSafe for SnapshotState
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