pub enum SecretGroupError {
NotOwner,
WelcomeMissing,
LTSInvalidGroupID,
LTSSecretMissing,
LTSEncodingError,
LTSDecodingError,
InvalidMemberPublicKey,
UnknownValue,
MlsError(MlsError),
LTSError(LongTermSecretError),
}Expand description
Custom error types for SecretGroup.
Variants§
NotOwner
Commit messages and new long-term secrets can only be created by group owners.
WelcomeMissing
MLS commit message was expected to contain a welcome message as well.
LTSInvalidGroupID
Long-term secret does not match current secret group.
LTSSecretMissing
User data could not be decrypted since long-term secret is missing.
LTSEncodingError
LTS secret encoding failed.
LTSDecodingError
LTS secret decoding failed. Maybe the data was corrupted or invalid?
InvalidMemberPublicKey
Member’s public key cannot be decoded as an Ed25519 public key.
UnknownValue
Decoding failed with unknown value.
MlsError(MlsError)
Error coming from mls sub-module.
LTSError(LongTermSecretError)
Error coming from lts sub-module.
Trait Implementations§
Source§impl Debug for SecretGroupError
impl Debug for SecretGroupError
Source§impl Display for SecretGroupError
impl Display for SecretGroupError
Source§impl Error for SecretGroupError
impl Error for SecretGroupError
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()
Auto Trait Implementations§
impl Freeze for SecretGroupError
impl RefUnwindSafe for SecretGroupError
impl Send for SecretGroupError
impl Sync for SecretGroupError
impl Unpin for SecretGroupError
impl UnwindSafe for SecretGroupError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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
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