pub enum TwoPartyError {
Hpke(HpkeError),
X3dh(X3dhError),
Rng(RngError),
Encode(EncodeError),
Decode(DecodeError),
X25519(X25519Error),
PreKeyReuse,
UnknownSecretUsed(u64),
UnknownPreKeyUsed(PreKeyId),
InvalidCiphertextType,
}Variants§
Hpke(HpkeError)
X3dh(X3dhError)
Rng(RngError)
Encode(EncodeError)
Decode(DecodeError)
X25519(X25519Error)
PreKeyReuse
UnknownSecretUsed(u64)
UnknownPreKeyUsed(PreKeyId)
InvalidCiphertextType
Trait Implementations§
Source§impl Debug for TwoPartyError
impl Debug for TwoPartyError
Source§impl Display for TwoPartyError
impl Display for TwoPartyError
Source§impl Error for TwoPartyError
impl Error for TwoPartyError
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 TwoPartyError
impl From<DecodeError> for TwoPartyError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<EncodeError> for TwoPartyError
impl From<EncodeError> for TwoPartyError
Source§fn from(source: EncodeError) -> Self
fn from(source: EncodeError) -> Self
Converts to this type from the input type.
Source§impl From<HpkeError> for TwoPartyError
impl From<HpkeError> for TwoPartyError
Source§impl From<RngError> for TwoPartyError
impl From<RngError> for TwoPartyError
Source§impl<ID, OP, PKI, DGM, KMG> From<TwoPartyError> for DcgkaError<ID, OP, PKI, DGM, KMG>where
PKI: IdentityRegistry<ID, PKI::State> + PreKeyRegistry<ID, LongTermKeyBundle>,
DGM: GroupMembership<ID, OP>,
KMG: PreKeyManager,
Available on crate features data_scheme only.
impl<ID, OP, PKI, DGM, KMG> From<TwoPartyError> for DcgkaError<ID, OP, PKI, DGM, KMG>where
PKI: IdentityRegistry<ID, PKI::State> + PreKeyRegistry<ID, LongTermKeyBundle>,
DGM: GroupMembership<ID, OP>,
KMG: PreKeyManager,
Available on crate features
data_scheme only.Source§fn from(source: TwoPartyError) -> Self
fn from(source: TwoPartyError) -> Self
Converts to this type from the input type.
Source§impl<ID, OP, PKI, DGM, KMG> From<TwoPartyError> for DcgkaError<ID, OP, PKI, DGM, KMG>where
PKI: IdentityRegistry<ID, PKI::State> + PreKeyRegistry<ID, OneTimeKeyBundle>,
DGM: AckedGroupMembership<ID, OP>,
KMG: PreKeyManager,
Available on crate features message_scheme only.
impl<ID, OP, PKI, DGM, KMG> From<TwoPartyError> for DcgkaError<ID, OP, PKI, DGM, KMG>where
PKI: IdentityRegistry<ID, PKI::State> + PreKeyRegistry<ID, OneTimeKeyBundle>,
DGM: AckedGroupMembership<ID, OP>,
KMG: PreKeyManager,
Available on crate features
message_scheme only.Source§fn from(source: TwoPartyError) -> Self
fn from(source: TwoPartyError) -> Self
Converts to this type from the input type.
Source§impl From<X3dhError> for TwoPartyError
impl From<X3dhError> for TwoPartyError
Source§impl From<X25519Error> for TwoPartyError
impl From<X25519Error> for TwoPartyError
Source§fn from(source: X25519Error) -> Self
fn from(source: X25519Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for TwoPartyError
impl !UnwindSafe for TwoPartyError
impl Freeze for TwoPartyError
impl Send for TwoPartyError
impl Sync for TwoPartyError
impl Unpin for TwoPartyError
impl UnsafeUnpin for TwoPartyError
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