pub enum LoadOutcome {
Served {
index: Index,
stored: SnapshotIdentity,
},
Refused {
identity: SnapshotIdentity,
root: PathBuf,
},
Absent,
}Expand description
Result of loading a snapshot for one requested stored-state identity.
Variants§
Served
The snapshot supplied an index, either exactly or through a lawful projection.
Fields
§
stored: SnapshotIdentityThe identity the snapshot declares, which is what a plan admits: a projected index reports the requested identity, not this one.
Refused
The snapshot was valid, but its identity cannot answer this request.
Fields
§
identity: SnapshotIdentityThe validated identity that did not serve the request.
Absent
No valid snapshot was present.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LoadOutcome
impl RefUnwindSafe for LoadOutcome
impl Send for LoadOutcome
impl Sync for LoadOutcome
impl Unpin for LoadOutcome
impl UnsafeUnpin for LoadOutcome
impl UnwindSafe for LoadOutcome
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