pub enum FoldError {
InvalidGeneration {
node_id: NodeId,
},
RestoreOverLiveState {
current_len: usize,
},
}Expand description
Errors the runtime returns from the apply / snapshot path.
Dispatch-layer errors (bad signature, unknown kind) flow
through super::WireError / super::DispatchError
instead.
Variants§
InvalidGeneration
Apply rejected because the announcement’s generation is
0, which the wire format reserves as the “uninitialized”
sentinel. A legitimate publisher always starts at 1.
RestoreOverLiveState
Restore was called on a non-empty fold without the
force flag. The runtime refuses to merge a snapshot
over a live state — operators who really want this pass
force: true to super::Fold::restore.
Trait Implementations§
Source§impl Error for FoldError
impl Error for FoldError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for FoldError
impl RefUnwindSafe for FoldError
impl Send for FoldError
impl Sync for FoldError
impl Unpin for FoldError
impl UnsafeUnpin for FoldError
impl UnwindSafe for FoldError
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