pub enum DevicePairingError {
Show 18 variants
Code(EnvelopeError),
UnsupportedVersion(u32),
NoEndpoint,
EmptyStoreName,
Hex {
field: &'static str,
source: FromHexError,
},
HexLength {
field: &'static str,
expected: usize,
},
Key(KeyError),
Json(Error),
Journal(FileError),
JournalPath(PathTokenError),
Ciphertext(DecodeError),
OfferMismatch,
PairingKeyMismatch,
InvalidSignature,
PreparedPairingMismatch,
InvitationConflict,
InvitationMissing,
PreparedPairingPathMismatch {
expected: PathBuf,
actual: PathBuf,
},
}Variants§
Code(EnvelopeError)
UnsupportedVersion(u32)
NoEndpoint
EmptyStoreName
Hex
HexLength
Key(KeyError)
Json(Error)
Journal(FileError)
JournalPath(PathTokenError)
Ciphertext(DecodeError)
OfferMismatch
PairingKeyMismatch
InvalidSignature
PreparedPairingMismatch
InvitationConflict
InvitationMissing
PreparedPairingPathMismatch
Trait Implementations§
Source§impl Debug for DevicePairingError
impl Debug for DevicePairingError
Source§impl Display for DevicePairingError
impl Display for DevicePairingError
Source§impl Error for DevicePairingError
impl Error for DevicePairingError
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<DecodeError> for DevicePairingError
impl From<DecodeError> for DevicePairingError
Source§impl From<DevicePairingError> for BootstrapError
impl From<DevicePairingError> for BootstrapError
Source§fn from(source: DevicePairingError) -> Self
fn from(source: DevicePairingError) -> Self
Converts to this type from the input type.
Source§impl From<DevicePairingError> for DevicePairingTransportError
impl From<DevicePairingError> for DevicePairingTransportError
Source§fn from(source: DevicePairingError) -> Self
fn from(source: DevicePairingError) -> Self
Converts to this type from the input type.
Source§impl From<EnvelopeError> for DevicePairingError
impl From<EnvelopeError> for DevicePairingError
Source§fn from(source: EnvelopeError) -> Self
fn from(source: EnvelopeError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for DevicePairingError
impl From<Error> for DevicePairingError
Source§impl From<FileError> for DevicePairingError
impl From<FileError> for DevicePairingError
Source§impl From<KeyError> for DevicePairingError
impl From<KeyError> for DevicePairingError
Source§impl From<PathTokenError> for DevicePairingError
impl From<PathTokenError> for DevicePairingError
Source§fn from(source: PathTokenError) -> Self
fn from(source: PathTokenError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DevicePairingError
impl !RefUnwindSafe for DevicePairingError
impl Send for DevicePairingError
impl Sync for DevicePairingError
impl Unpin for DevicePairingError
impl UnsafeUnpin for DevicePairingError
impl !UnwindSafe for DevicePairingError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.