pub enum InvalidMessageError {
PlaintextMessageTooLong {
actual: usize,
permitted: usize,
},
MimeTypeTooLong {
actual: usize,
permitted: usize,
},
EncryptedMessageTooLong {
actual: usize,
permitted: usize,
},
NoDecryptors,
MismatchingDecryptorCurves {
actual: CurveType,
expected: CurveType,
},
TooManyDecryptors {
actual: usize,
permitted: usize,
},
NoDecryptorsForCurveType {
curve_type: CurveType,
},
}
Variants§
PlaintextMessageTooLong
MimeTypeTooLong
EncryptedMessageTooLong
NoDecryptors
MismatchingDecryptorCurves
TooManyDecryptors
NoDecryptorsForCurveType
Trait Implementations§
Source§impl Clone for InvalidMessageError
impl Clone for InvalidMessageError
Source§fn clone(&self) -> InvalidMessageError
fn clone(&self) -> InvalidMessageError
Returns a duplicate 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 InvalidMessageError
impl Debug for InvalidMessageError
Source§impl From<InvalidMessageError> for IntentValidationError
impl From<InvalidMessageError> for IntentValidationError
Source§fn from(value: InvalidMessageError) -> Self
fn from(value: InvalidMessageError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InvalidMessageError
impl PartialEq for InvalidMessageError
impl Eq for InvalidMessageError
impl StructuralPartialEq for InvalidMessageError
Auto Trait Implementations§
impl Freeze for InvalidMessageError
impl RefUnwindSafe for InvalidMessageError
impl Send for InvalidMessageError
impl Sync for InvalidMessageError
impl Unpin for InvalidMessageError
impl UnwindSafe for InvalidMessageError
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, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
impl<T, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
type Error = <U as ContextualTryFrom<T>>::Error
type Context = <U as ContextualTryFrom<T>>::Context
fn contextual_try_into( self, context: &<U as ContextualTryFrom<T>>::Context, ) -> Result<U, <U as ContextualTryFrom<T>>::Error>
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.