pub enum LeaseRevokeTransitionError {
LeaseNotRegistered {
lease_id: u128,
},
IllegalTransition {
lease_id: u128,
from: RevokeState,
to: RevokeState,
},
}Expand description
Error returned when a lease revoke-state transition cannot be applied.
Variants§
LeaseNotRegistered
The lease is not registered with this manager.
IllegalTransition
The requested direct state transition is not legal for RevokeState.
Trait Implementations§
Source§impl Clone for LeaseRevokeTransitionError
impl Clone for LeaseRevokeTransitionError
Source§fn clone(&self) -> LeaseRevokeTransitionError
fn clone(&self) -> LeaseRevokeTransitionError
Returns a duplicate of the value. Read more
1.0.0 · 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 LeaseRevokeTransitionError
impl Debug for LeaseRevokeTransitionError
Source§impl Display for LeaseRevokeTransitionError
impl Display for LeaseRevokeTransitionError
Source§impl Error for LeaseRevokeTransitionError
Available on crate feature std only.
impl Error for LeaseRevokeTransitionError
Available on crate feature
std only.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()
impl Eq for LeaseRevokeTransitionError
impl StructuralPartialEq for LeaseRevokeTransitionError
Auto Trait Implementations§
impl Freeze for LeaseRevokeTransitionError
impl RefUnwindSafe for LeaseRevokeTransitionError
impl Send for LeaseRevokeTransitionError
impl Sync for LeaseRevokeTransitionError
impl Unpin for LeaseRevokeTransitionError
impl UnwindSafe for LeaseRevokeTransitionError
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