pub enum LifecycleError {
DefinitionMismatch {
offered: String,
presented: String,
},
RevisionMismatch {
offered: u64,
presented: u64,
},
AlreadyTerminal {
state: LifecycleState,
},
IllegalTransition {
from: LifecycleState,
to: LifecycleState,
},
Protocol(ProtocolError),
}Expand description
Why a lifecycle transition was refused.
Variants§
DefinitionMismatch
The offer names a different definition than the host presented.
Fields
RevisionMismatch
The offer names a different revision than the definition carries.
Fields
AlreadyTerminal
A terminal state accepts no further transition.
Fields
§
state: LifecycleStateThe terminal state the lifecycle is already in.
IllegalTransition
The transition is not one this machine allows.
Fields
§
from: LifecycleStateWhere the lifecycle is.
§
to: LifecycleStateWhere the caller tried to move it.
Protocol(ProtocolError)
Content addressing failed while checking the binding.
Trait Implementations§
Source§impl Debug for LifecycleError
impl Debug for LifecycleError
Source§impl Display for LifecycleError
impl Display for LifecycleError
Source§impl Error for LifecycleError
impl Error for LifecycleError
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<ProtocolError> for LifecycleError
impl From<ProtocolError> for LifecycleError
Source§fn from(source: ProtocolError) -> Self
fn from(source: ProtocolError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for LifecycleError
impl !UnwindSafe for LifecycleError
impl Freeze for LifecycleError
impl Send for LifecycleError
impl Sync for LifecycleError
impl Unpin for LifecycleError
impl UnsafeUnpin for LifecycleError
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