#[non_exhaustive]pub enum SessionError {
Params {
key: &'static str,
},
RingSize {
got: u32,
},
IdentityMismatch,
ExternalSenderMismatch,
UnsupportedCiphersuite(u16),
Left,
Ignored(&'static str),
Decode(DecodeError),
Mls(&'static str),
Refused(&'static str),
Identity(IdentityError),
}Expand description
Why a session could not start or continue.
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.
Params
A params value outside its allowed range.
RingSize
key_ring_size is not 64.
IdentityMismatch
CallKeysInit.lk_identity is not p_ + base32(join_id).
ExternalSenderMismatch
The external_sender differs from the pinned bytes.
UnsupportedCiphersuite(u16)
A ciphersuite other than 0x0001.
Left
The session has left (terminal).
Ignored(&'static str)
An input that does not apply in this state (ignored; the state is unchanged).
Decode(DecodeError)
A decoder refused its input.
Mls(&'static str)
An MLS operation failed; recovery output is already queued.
Refused(&'static str)
A message failed a member-side check; recovery output is already queued.
Identity(IdentityError)
The device identity is unusable.
Trait Implementations§
Source§impl Clone for SessionError
impl Clone for SessionError
Source§impl Debug for SessionError
impl Debug for SessionError
Source§impl Display for SessionError
impl Display for SessionError
impl Eq for SessionError
Source§impl Error for SessionError
impl Error for SessionError
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 SessionError
impl From<DecodeError> for SessionError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<IdentityError> for SessionError
impl From<IdentityError> for SessionError
Source§fn from(source: IdentityError) -> Self
fn from(source: IdentityError) -> Self
Converts to this type from the input type.
Source§impl From<SessionError> for JoinError
impl From<SessionError> for JoinError
Source§fn from(source: SessionError) -> Self
fn from(source: SessionError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SessionError
impl PartialEq for SessionError
impl StructuralPartialEq for SessionError
Auto Trait Implementations§
impl Forget for SessionError
impl Freeze for SessionError
impl Move for SessionError
impl RefUnwindSafe for SessionError
impl Send for SessionError
impl Sync for SessionError
impl Unpin for SessionError
impl UnsafeUnpin for SessionError
impl UnwindSafe for SessionError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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