pub enum SessionKeyError {
InvalidBase64,
InvalidLength {
actual: usize,
},
Generation(Error),
}Expand description
Failure to decode or generate session key material.
Variants§
InvalidBase64
The configured value is not valid supported base64.
InvalidLength
The decoded key does not have the required size.
Generation(Error)
The operating system could not provide cryptographic randomness.
Trait Implementations§
Source§impl Debug for SessionKeyError
impl Debug for SessionKeyError
Source§impl Display for SessionKeyError
impl Display for SessionKeyError
Source§impl Error for SessionKeyError
impl Error for SessionKeyError
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<SessionKeyError> for SessionKeyEnvironmentError
impl From<SessionKeyError> for SessionKeyEnvironmentError
Source§fn from(source: SessionKeyError) -> Self
fn from(source: SessionKeyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SessionKeyError
impl RefUnwindSafe for SessionKeyError
impl Send for SessionKeyError
impl Sync for SessionKeyError
impl Unpin for SessionKeyError
impl UnsafeUnpin for SessionKeyError
impl UnwindSafe for SessionKeyError
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