pub enum InternalError {
Show 18 variants
NoMemory,
InvalidArgument,
Unknown,
DuplicateMessage,
InvalidKey,
InvalidKeyId,
InvalidMAC,
InvalidMessage,
InvalidVersion,
LegacyMessage,
NoSession,
StaleKeyExchange,
UntrustedIdentity,
VerifySignatureVerificationFailed,
InvalidProtoBuf,
FPVersionMismatch,
FPIdentMismatch,
Other(i32),
}Variants§
NoMemory
InvalidArgument
Unknown
DuplicateMessage
InvalidKey
InvalidKeyId
InvalidMAC
InvalidMessage
InvalidVersion
LegacyMessage
NoSession
StaleKeyExchange
UntrustedIdentity
VerifySignatureVerificationFailed
InvalidProtoBuf
FPVersionMismatch
FPIdentMismatch
Other(i32)
Implementations§
Source§impl InternalError
impl InternalError
Sourcepub fn from_error_code(code: i32) -> Option<InternalError>
pub fn from_error_code(code: i32) -> Option<InternalError>
Try to figure out what type of error a code corresponds to.
Trait Implementations§
Source§impl Clone for InternalError
impl Clone for InternalError
Source§fn clone(&self) -> InternalError
fn clone(&self) -> InternalError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InternalError
Source§impl Debug for InternalError
impl Debug for InternalError
Source§impl Display for InternalError
impl Display for InternalError
impl Eq for InternalError
Source§impl Fail for InternalError
impl Fail for InternalError
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace carried by this failure, if it
carries one. Read moreSource§impl From<InternalError> for i32
impl From<InternalError> for i32
Source§fn from(other: InternalError) -> i32
fn from(other: InternalError) -> i32
Converts to this type from the input type.
Source§impl Hash for InternalError
impl Hash for InternalError
Source§impl PartialEq for InternalError
impl PartialEq for InternalError
Source§fn eq(&self, other: &InternalError) -> bool
fn eq(&self, other: &InternalError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InternalError
Auto Trait Implementations§
impl Freeze for InternalError
impl RefUnwindSafe for InternalError
impl Send for InternalError
impl Sync for InternalError
impl Unpin for InternalError
impl UnsafeUnpin for InternalError
impl UnwindSafe for InternalError
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