pub enum ImError {
Show 20 variants
InvalidInput {
field: Option<String>,
message: String,
},
IdentityRequired,
IdentityNotFound {
selector: String,
},
DefaultIdentityMissing,
IdentityNotReady {
identity: String,
missing: Vec<String>,
},
AuthRequired,
SessionExpired,
PermissionDenied,
PeerNotFound {
peer: String,
},
GroupNotFound {
group: String,
},
MessageNotFound {
message_id: String,
},
TransportUnavailable {
detail: String,
},
UnsupportedCapability {
capability: String,
},
LocalStateUnavailable {
detail: String,
},
PathUnavailable {
path_kind: String,
detail: String,
},
CredentialFileUnreadable {
path_kind: String,
detail: String,
},
Service {
status_code: Option<u16>,
code: Option<String>,
message: String,
data: Option<Value>,
},
Serialization {
detail: String,
},
Io {
detail: String,
},
Internal {
message: String,
},
}Variants§
InvalidInput
IdentityRequired
IdentityNotFound
DefaultIdentityMissing
IdentityNotReady
AuthRequired
SessionExpired
PermissionDenied
PeerNotFound
GroupNotFound
MessageNotFound
UnsupportedCapability
CredentialFileUnreadable
Service
Serialization
Io
Internal
Implementations§
Trait Implementations§
impl Eq for ImError
Source§impl Error for ImError
impl Error for ImError
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 StructuralPartialEq for ImError
Auto Trait Implementations§
impl Freeze for ImError
impl RefUnwindSafe for ImError
impl Send for ImError
impl Sync for ImError
impl Unpin for ImError
impl UnsafeUnpin for ImError
impl UnwindSafe for ImError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.