pub enum SecretTreeError {
TooDistantInThePast,
TooDistantInTheFuture,
IndexOutOfBounds,
SecretReuseError,
RatchetTypeError,
RatchetTooLong,
LibraryError,
CodecError(Error),
CryptoError(CryptoError),
}
Expand description
Secret tree error
Variants§
TooDistantInThePast
Generation is too old to be processed.
TooDistantInTheFuture
Generation is too far in the future to be processed.
IndexOutOfBounds
Index out of bounds
SecretReuseError
The requested secret was deleted to preserve forward secrecy.
RatchetTypeError
Cannot create decryption secrets from own sender ratchet or encryption secrets from the sender ratchets of other members.
RatchetTooLong
Ratchet generation has reached u32::MAX
.
LibraryError
An unrecoverable error has occurred due to a bug in the implementation.
CodecError(Error)
See TlsCodecError
for more details.
CryptoError(CryptoError)
See CryptoError
for more details.
Trait Implementations§
Source§impl Clone for SecretTreeError
impl Clone for SecretTreeError
Source§fn clone(&self) -> SecretTreeError
fn clone(&self) -> SecretTreeError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SecretTreeError
impl Debug for SecretTreeError
Source§impl Display for SecretTreeError
impl Display for SecretTreeError
Source§impl Error for SecretTreeError
impl Error for SecretTreeError
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<CryptoError> for SecretTreeError
impl From<CryptoError> for SecretTreeError
Source§fn from(source: CryptoError) -> Self
fn from(source: CryptoError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for SecretTreeError
impl From<Error> for SecretTreeError
Source§fn from(source: TlsCodecError) -> Self
fn from(source: TlsCodecError) -> Self
Converts to this type from the input type.
Source§impl From<SecretTreeError> for MessageDecryptionError
impl From<SecretTreeError> for MessageDecryptionError
Source§fn from(source: SecretTreeError) -> Self
fn from(source: SecretTreeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SecretTreeError
impl PartialEq for SecretTreeError
impl Eq for SecretTreeError
impl StructuralPartialEq for SecretTreeError
Auto Trait Implementations§
impl Freeze for SecretTreeError
impl RefUnwindSafe for SecretTreeError
impl Send for SecretTreeError
impl Sync for SecretTreeError
impl Unpin for SecretTreeError
impl UnwindSafe for SecretTreeError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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