pub enum SecretFormatError {
InvalidFormat(&'static str),
InvalidSecret,
RandomUnavailable,
}Expand description
Controlled secret material parsing or generation failure.
Variants§
InvalidFormat(&'static str)
Structured material is malformed.
InvalidSecret
Secret bytes fail minimum validation.
Operating-system random source is unavailable.
Trait Implementations§
Source§impl Clone for SecretFormatError
impl Clone for SecretFormatError
Source§fn clone(&self) -> SecretFormatError
fn clone(&self) -> SecretFormatError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SecretFormatError
impl Debug for SecretFormatError
Source§impl Display for SecretFormatError
impl Display for SecretFormatError
impl Eq for SecretFormatError
Source§impl PartialEq for SecretFormatError
impl PartialEq for SecretFormatError
impl StructuralPartialEq for SecretFormatError
Auto Trait Implementations§
impl Freeze for SecretFormatError
impl RefUnwindSafe for SecretFormatError
impl Send for SecretFormatError
impl Sync for SecretFormatError
impl Unpin for SecretFormatError
impl UnsafeUnpin for SecretFormatError
impl UnwindSafe for SecretFormatError
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