pub enum OlmSessionError {
BadAccountKey,
BadMessageFormat,
BadMessageKeyId,
BadMessageMac,
BadMessageVersion,
InvalidBase64,
NotEnoughRandom,
OutputBufferTooSmall,
Unknown,
}
Expand description
All errors that could be caused by an operation regarding an OlmSession
.
Errors are named exactly like the ones in libolm.
Variants§
BadAccountKey
BadMessageFormat
BadMessageKeyId
BadMessageMac
BadMessageVersion
InvalidBase64
NotEnoughRandom
OutputBufferTooSmall
Unknown
Trait Implementations§
Source§impl Debug for OlmSessionError
impl Debug for OlmSessionError
Source§impl Display for OlmSessionError
impl Display for OlmSessionError
Source§impl Error for OlmSessionError
impl Error for OlmSessionError
1.30.0 · 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 PartialEq for OlmSessionError
impl PartialEq for OlmSessionError
impl StructuralPartialEq for OlmSessionError
Auto Trait Implementations§
impl Freeze for OlmSessionError
impl RefUnwindSafe for OlmSessionError
impl Send for OlmSessionError
impl Sync for OlmSessionError
impl Unpin for OlmSessionError
impl UnwindSafe for OlmSessionError
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