#[non_exhaustive]pub enum SecretStringAppendError {
TooLong,
CapacityOverflow,
Allocation,
InvalidUtf8,
}Expand description
Failure while fallibly appending to protected UTF-8 storage.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TooLong
The resulting public byte length exceeds the caller’s bound.
CapacityOverflow
The resulting public byte length overflowed usize.
Allocation
Protected replacement storage could not be allocated.
InvalidUtf8
The protected string’s internal UTF-8 invariant was not satisfied.
Trait Implementations§
Source§impl Clone for SecretStringAppendError
impl Clone for SecretStringAppendError
Source§fn clone(&self) -> SecretStringAppendError
fn clone(&self) -> SecretStringAppendError
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 moreimpl Copy for SecretStringAppendError
Source§impl Debug for SecretStringAppendError
impl Debug for SecretStringAppendError
Source§impl Display for SecretStringAppendError
Available on crate feature alloc only.
impl Display for SecretStringAppendError
Available on crate feature
alloc only.impl Eq for SecretStringAppendError
Source§impl Error for SecretStringAppendError
Available on crate feature alloc only.
impl Error for SecretStringAppendError
Available on crate feature
alloc only.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 SecretStringAppendError
impl PartialEq for SecretStringAppendError
impl StructuralPartialEq for SecretStringAppendError
Auto Trait Implementations§
impl Freeze for SecretStringAppendError
impl RefUnwindSafe for SecretStringAppendError
impl Send for SecretStringAppendError
impl Sync for SecretStringAppendError
impl Unpin for SecretStringAppendError
impl UnsafeUnpin for SecretStringAppendError
impl UnwindSafe for SecretStringAppendError
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