pub enum OpsError {
NotRoot,
IsRoot,
ConfigOpsError(ConfigOpsError),
IcOpsError(IcOpsError),
OrchestrationOpsError(OrchestrationOpsError),
ReserveOpsError(ReserveOpsError),
RpcOpsError(RpcOpsError),
StorageOpsError(StorageOpsError),
}Expand description
OpsError Error envelope shared across operations submodules
Variants§
NotRoot
Raised when a function requires root context, but was called from a child.
IsRoot
Raised when a function must not be called from root.
ConfigOpsError(ConfigOpsError)
IcOpsError(IcOpsError)
OrchestrationOpsError(OrchestrationOpsError)
ReserveOpsError(ReserveOpsError)
RpcOpsError(RpcOpsError)
StorageOpsError(StorageOpsError)
Implementations§
Trait Implementations§
Source§impl Error for OpsError
impl Error for OpsError
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§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ConfigOpsError> for OpsError
impl From<ConfigOpsError> for OpsError
Source§fn from(source: ConfigOpsError) -> Self
fn from(source: ConfigOpsError) -> Self
Converts to this type from the input type.
Source§impl From<IcOpsError> for OpsError
impl From<IcOpsError> for OpsError
Source§fn from(source: IcOpsError) -> Self
fn from(source: IcOpsError) -> Self
Converts to this type from the input type.
Source§impl From<OrchestrationOpsError> for OpsError
impl From<OrchestrationOpsError> for OpsError
Source§fn from(source: OrchestrationOpsError) -> Self
fn from(source: OrchestrationOpsError) -> Self
Converts to this type from the input type.
Source§impl From<ReserveOpsError> for OpsError
impl From<ReserveOpsError> for OpsError
Source§fn from(source: ReserveOpsError) -> Self
fn from(source: ReserveOpsError) -> Self
Converts to this type from the input type.
Source§impl From<RpcOpsError> for OpsError
impl From<RpcOpsError> for OpsError
Source§fn from(source: RpcOpsError) -> Self
fn from(source: RpcOpsError) -> Self
Converts to this type from the input type.
Source§impl From<StorageOpsError> for OpsError
impl From<StorageOpsError> for OpsError
Source§fn from(source: StorageOpsError) -> Self
fn from(source: StorageOpsError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OpsError
impl RefUnwindSafe for OpsError
impl Send for OpsError
impl Sync for OpsError
impl Unpin for OpsError
impl UnwindSafe for OpsError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more