#[non_exhaustive]pub enum PairingError {
Show 16 variants
EmptyTransportUri,
InvalidContactMessage(&'static str),
InvalidPairRequestMessage(&'static str),
InvalidPairResponseMessage(&'static str),
NonOkStatus {
status: i32,
memo: String,
},
ProtocolViolation(&'static str),
PrePairHashMismatch,
MissingReplicaId {
sender_kind: SenderKind,
},
UnexpectedReplicaId {
sender_kind: SenderKind,
},
IncompatibleParameterRange {
field: &'static str,
local_min: i64,
local_max: i64,
peer_min: i64,
peer_max: i64,
},
Invariant(&'static str),
ContactMessageKeygen {
source: DerecPairingError,
},
PairRequestKeygen {
source: DerecPairingError,
},
FinishPairingInitiator {
source: DerecPairingError,
},
FinishPairingResponder {
source: DerecPairingError,
},
PairingEncryption(DerecEncryptionError),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EmptyTransportUri
InvalidContactMessage(&'static str)
InvalidPairRequestMessage(&'static str)
InvalidPairResponseMessage(&'static str)
NonOkStatus
ProtocolViolation(&'static str)
PrePairHashMismatch
MissingReplicaId
Fields
§
sender_kind: SenderKindUnexpectedReplicaId
Fields
§
sender_kind: SenderKindIncompatibleParameterRange
The peer’s advertised ParameterRange
does not overlap the local one on field. local and peer are
the offending (min, max) pair so the application can render a
useful diagnostic.
Invariant(&'static str)
ContactMessageKeygen
Fields
§
source: DerecPairingErrorPairRequestKeygen
Fields
§
source: DerecPairingErrorFinishPairingInitiator
Fields
§
source: DerecPairingErrorFinishPairingResponder
Fields
§
source: DerecPairingErrorPairingEncryption(DerecEncryptionError)
Trait Implementations§
Source§impl Debug for PairingError
impl Debug for PairingError
Source§impl Display for PairingError
impl Display for PairingError
Source§impl Error for PairingError
impl Error for PairingError
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<DerecEncryptionError> for PairingError
impl From<DerecEncryptionError> for PairingError
Source§fn from(source: DerecEncryptionError) -> Self
fn from(source: DerecEncryptionError) -> Self
Converts to this type from the input type.
Source§impl From<PairingError> for Error
impl From<PairingError> for Error
Source§fn from(source: PairingError) -> Self
fn from(source: PairingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PairingError
impl !UnwindSafe for PairingError
impl Freeze for PairingError
impl Send for PairingError
impl Sync for PairingError
impl Unpin for PairingError
impl UnsafeUnpin for PairingError
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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 more