pub enum Error {
Show 28 variants
InvalidShareUrl,
NotForMe,
DevicePatchSync(Box<Error>),
NoEnrollment,
AccountNotFetched,
EnrollAccountExists(AccountId),
EnrollSync(Box<Error>),
BadState,
Client(Error),
Core(Error),
Backend(Error),
Login(Error),
Signer(Error),
Vault(Error),
Database(Error),
BackendStorage(StorageError),
Account(Error),
Storage(Error),
Io(Error),
Json(Error),
Hex(FromHexError),
TryFromSlice(TryFromSliceError),
UrlParse(ParseError),
Snow(Error),
WebSocket(Error),
Protocol(Error),
ProtoBufEncode(EncodeError),
ProtoBufDecode(DecodeError),
}
pairing
only.Expand description
Errors generated by the pairing library.
Variants§
Error generated trying to parse a pairing URL.
NotForMe
Error generated if a packet has a to public key that does not match the recipient key pair.
DevicePatchSync(Box<Error>)
Error generated failing to sync devices patch.
NoEnrollment
Error generated trying to access device enrollment before pairing protocol completion.
AccountNotFetched
Error generated trying to finish device enrollment before fetching the account data.
EnrollAccountExists(AccountId)
Error generated attempting to enroll a new device and the account already exists on the device.
EnrollSync(Box<Error>)
Error generated when failing to sync after completing device enrollment.
BadState
Error generated when the protocol is in the wrong state or a packet payload is not of the expected type.
Client(Error)
Error generated by the client library.
Core(Error)
Error generated by the core library.
Backend(Error)
Error generated by the backend library.
Login(Error)
Error generated by the login library.
Signer(Error)
Error generated by the signer library.
Vault(Error)
Error generated by the vault library.
Database(Error)
Error generated by the database library.
BackendStorage(StorageError)
Error generated by the backend storage.
Account(Error)
Error generated by the account library.
Storage(Error)
Error generated by the storage library.
Io(Error)
Error generated by the io module.
Json(Error)
Error generated by the JSON library.
Hex(FromHexError)
Error generated when parsing from hex.
TryFromSlice(TryFromSliceError)
Error generated attempting to convert from a slice.
UrlParse(ParseError)
Error generated attempting to parse a URL.
Snow(Error)
Error generated by the snow noise protocol library.
WebSocket(Error)
Error generated by the websocket client.
Protocol(Error)
Error generated by the protocol module.
ProtoBufEncode(EncodeError)
Error generated by the protobuf library when encoding.
ProtoBufDecode(DecodeError)
Error generated by the protobuf library when decoding.
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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<DecodeError> for Error
impl From<DecodeError> for Error
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Source§impl From<EncodeError> for Error
impl From<EncodeError> for Error
Source§fn from(source: EncodeError) -> Self
fn from(source: EncodeError) -> Self
Source§impl From<FromHexError> for Error
impl From<FromHexError> for Error
Source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Source§impl From<ParseError> for Error
impl From<ParseError> for Error
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Source§impl From<StorageError> for Error
impl From<StorageError> for Error
Source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Source§impl From<TryFromSliceError> for Error
impl From<TryFromSliceError> for Error
Source§fn from(source: TryFromSliceError) -> Self
fn from(source: TryFromSliceError) -> Self
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.