pub enum AttemptError {
IllegalTransition {
from: AttemptState,
to: AttemptState,
},
Workspace(WorkspaceError),
BusyCannotBeCleaned,
OutcomeUnreachable {
from: AttemptState,
outcome: AttemptOutcome,
},
TerminalWithoutOutcome {
state: AttemptState,
},
NonTerminalWithOutcome {
state: AttemptState,
outcome: AttemptOutcome,
},
OutcomeStateMismatch {
state: AttemptState,
outcome: AttemptOutcome,
},
TerminalWithoutTimestamp {
state: AttemptState,
},
NonTerminalWithTimestamp {
state: AttemptState,
},
TimestampsOutOfOrder {
state: AttemptState,
field: &'static str,
created_at: Timestamp,
found: Timestamp,
},
}Variants§
IllegalTransition
Workspace(WorkspaceError)
A stored workspace kind and slot that cannot describe one allocation, so the legal cleanup algorithm for the journalled path is undecidable.
BusyCannotBeCleaned
OutcomeUnreachable
TerminalWithoutOutcome
Fields
§
state: AttemptStateNonTerminalWithOutcome
OutcomeStateMismatch
TerminalWithoutTimestamp
Fields
§
state: AttemptStateNonTerminalWithTimestamp
Fields
§
state: AttemptStateTimestampsOutOfOrder
Trait Implementations§
Source§impl Clone for AttemptError
impl Clone for AttemptError
Source§fn clone(&self) -> AttemptError
fn clone(&self) -> AttemptError
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 AttemptError
impl Debug for AttemptError
Source§impl Display for AttemptError
impl Display for AttemptError
impl Eq for AttemptError
Source§impl Error for AttemptError
impl Error for AttemptError
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()
Source§impl From<WorkspaceError> for AttemptError
impl From<WorkspaceError> for AttemptError
Source§fn from(source: WorkspaceError) -> Self
fn from(source: WorkspaceError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AttemptError
impl PartialEq for AttemptError
impl StructuralPartialEq for AttemptError
Auto Trait Implementations§
impl Freeze for AttemptError
impl RefUnwindSafe for AttemptError
impl Send for AttemptError
impl Sync for AttemptError
impl Unpin for AttemptError
impl UnsafeUnpin for AttemptError
impl UnwindSafe for AttemptError
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