pub enum Error {
Show 41 variants
IO,
Time,
InvalidOption,
InvalidOptionLength,
InvalidPageLength,
InvalidPageKind,
InvalidMessageKind,
CryptoError,
UnexpectedPageType,
UnexpectedServiceId,
UnexpectedApplicationId,
InvalidServiceVersion,
NoPrivateKey,
NoPublicKey,
NoSignature,
ExpectedPrimaryPage,
ExpectedSecondaryPage,
ExpectedDataObject,
UnexpectedPeerId,
NoPeerId,
KeyIdMismatch,
PublicKeyChanged,
Unimplemented,
SendError,
NoRequestId,
InvalidMessageType,
InvalidJson,
NoPeersFound,
NotFound,
InvalidResponse,
UnknownService,
InvalidSignature,
UnexpectedPageKind,
NoReplicasFound,
UnknownPeer,
NoSecretKey,
SecretKeyMismatch,
Base(BaseError),
Options(OptionsError),
Timeout,
Unknown,
}
Variants§
IO
Time
InvalidOption
InvalidOptionLength
InvalidPageLength
InvalidPageKind
InvalidMessageKind
CryptoError
UnexpectedPageType
UnexpectedServiceId
UnexpectedApplicationId
InvalidServiceVersion
NoPrivateKey
NoPublicKey
NoSignature
ExpectedPrimaryPage
ExpectedSecondaryPage
ExpectedDataObject
UnexpectedPeerId
NoPeerId
KeyIdMismatch
PublicKeyChanged
Unimplemented
SendError
NoRequestId
InvalidMessageType
InvalidJson
NoPeersFound
NotFound
InvalidResponse
UnknownService
InvalidSignature
UnexpectedPageKind
NoReplicasFound
UnknownPeer
NoSecretKey
SecretKeyMismatch
Base(BaseError)
Options(OptionsError)
Timeout
Unknown
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Error
impl<'de> Deserialize<'de> for Error
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<OptionsError> for Error
impl From<OptionsError> for Error
Source§fn from(e: OptionsError) -> Error
fn from(e: OptionsError) -> Error
Converts to this type from the input type.
Source§impl From<SystemTimeError> for Error
impl From<SystemTimeError> for Error
Source§fn from(_e: SystemTimeError) -> Error
fn from(_e: SystemTimeError) -> Error
Converts to this type from the input type.
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe 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