pub enum ComponentOperationError {
Show 16 variants
Authority {
field: &'static str,
},
Capacity,
Inventory(CurrentFleetInventoryError),
Icp(IcpCommandError),
InvalidLabel(String),
Integrity,
Io(Error),
Json(Error),
Missing,
Network(NetworkIdentityError),
Progress,
Protocol(CanisterProtocolError),
ProtocolBinding(ProtocolBindingError),
Review,
Spec,
State(EnsureStateError),
}Expand description
Typed host failure; remote protocol errors retain their originating diagnostic.
Variants§
Authority
Capacity
Inventory(CurrentFleetInventoryError)
Icp(IcpCommandError)
InvalidLabel(String)
Integrity
Io(Error)
Json(Error)
Missing
Network(NetworkIdentityError)
Progress
Protocol(CanisterProtocolError)
ProtocolBinding(ProtocolBindingError)
Review
Spec
State(EnsureStateError)
Trait Implementations§
Source§impl Debug for ComponentOperationError
impl Debug for ComponentOperationError
Source§impl Display for ComponentOperationError
impl Display for ComponentOperationError
Source§impl Error for ComponentOperationError
impl Error for ComponentOperationError
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<CanisterProtocolError> for ComponentOperationError
impl From<CanisterProtocolError> for ComponentOperationError
Source§fn from(source: CanisterProtocolError) -> Self
fn from(source: CanisterProtocolError) -> Self
Converts to this type from the input type.
Source§impl From<CurrentFleetInventoryError> for ComponentOperationError
impl From<CurrentFleetInventoryError> for ComponentOperationError
Source§fn from(source: CurrentFleetInventoryError) -> Self
fn from(source: CurrentFleetInventoryError) -> Self
Converts to this type from the input type.
Source§impl From<EnsureStateError> for ComponentOperationError
impl From<EnsureStateError> for ComponentOperationError
Source§fn from(source: EnsureStateError) -> Self
fn from(source: EnsureStateError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ComponentOperationError
impl From<Error> for ComponentOperationError
Source§impl From<Error> for ComponentOperationError
impl From<Error> for ComponentOperationError
Source§impl From<IcpCommandError> for ComponentOperationError
impl From<IcpCommandError> for ComponentOperationError
Source§fn from(source: IcpCommandError) -> Self
fn from(source: IcpCommandError) -> Self
Converts to this type from the input type.
Source§impl From<NetworkIdentityError> for ComponentOperationError
impl From<NetworkIdentityError> for ComponentOperationError
Source§fn from(source: NetworkIdentityError) -> Self
fn from(source: NetworkIdentityError) -> Self
Converts to this type from the input type.
Source§impl From<ProtocolBindingError> for ComponentOperationError
impl From<ProtocolBindingError> for ComponentOperationError
Source§fn from(source: ProtocolBindingError) -> Self
fn from(source: ProtocolBindingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ComponentOperationError
impl !UnwindSafe for ComponentOperationError
impl Freeze for ComponentOperationError
impl Send for ComponentOperationError
impl Sync for ComponentOperationError
impl Unpin for ComponentOperationError
impl UnsafeUnpin for ComponentOperationError
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