pub enum Error {
Show 13 variants
OperationPolicy(PolicyError),
DuplicateOperation {
id: String,
},
ReservedOperation {
id: String,
},
Config(ConfigError),
Identifier(IdentifierError),
Message(MessageError),
Registration(RegistrationError),
Scan(ScanError),
Value(ValueError),
InvalidInput {
field: &'static str,
reason: &'static str,
},
ResourceExhausted {
resource: &'static str,
},
DifferentHistory,
Corrupt {
operation: &'static str,
source: MessageError,
},
}Variants§
OperationPolicy(PolicyError)
DuplicateOperation
ReservedOperation
Config(ConfigError)
Identifier(IdentifierError)
Message(MessageError)
Registration(RegistrationError)
Scan(ScanError)
Value(ValueError)
InvalidInput
ResourceExhausted
DifferentHistory
Corrupt
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<ConfigError> for Error
impl From<ConfigError> for Error
Source§fn from(source: ConfigError) -> Error
fn from(source: ConfigError) -> Error
Converts to this type from the input type.
Source§impl From<Error> for ContractError
impl From<Error> for ContractError
Source§fn from(source: Error) -> ContractError
fn from(source: Error) -> ContractError
Converts to this type from the input type.
Source§impl From<Error> for ServingError
impl From<Error> for ServingError
Source§impl From<IdentifierError> for Error
impl From<IdentifierError> for Error
Source§fn from(source: IdentifierError) -> Error
fn from(source: IdentifierError) -> Error
Converts to this type from the input type.
Source§impl From<MessageError> for Error
impl From<MessageError> for Error
Source§fn from(source: MessageError) -> Error
fn from(source: MessageError) -> Error
Converts to this type from the input type.
Source§impl From<PolicyError> for Error
impl From<PolicyError> for Error
Source§fn from(source: PolicyError) -> Error
fn from(source: PolicyError) -> Error
Converts to this type from the input type.
Source§impl From<RegistrationError> for Error
impl From<RegistrationError> for Error
Source§fn from(source: RegistrationError) -> Error
fn from(source: RegistrationError) -> Error
Converts to this type from the input type.
Source§impl From<ValueError> for Error
impl From<ValueError> for Error
Source§fn from(source: ValueError) -> Error
fn from(source: ValueError) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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