pub enum BoundedSecretStringError {
Utf8(Utf8Error),
Limit(SecretStringLimitError),
}Expand description
Error returned while converting bounded secret bytes into UTF-8 text.
Variants§
Utf8(Utf8Error)
The secret bytes were not valid UTF-8.
Limit(SecretStringLimitError)
The valid UTF-8 text exceeded the declared public limit.
Trait Implementations§
Source§impl Clone for BoundedSecretStringError
impl Clone for BoundedSecretStringError
impl Copy for BoundedSecretStringError
Source§impl Debug for BoundedSecretStringError
impl Debug for BoundedSecretStringError
Source§impl Display for BoundedSecretStringError
Available on crate feature alloc only.
impl Display for BoundedSecretStringError
Available on crate feature
alloc only.impl Eq for BoundedSecretStringError
Source§impl Error for BoundedSecretStringError
Available on crate feature std only.
impl Error for BoundedSecretStringError
Available on crate feature
std only.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 BoundedSecretStringError
impl PartialEq for BoundedSecretStringError
impl StructuralPartialEq for BoundedSecretStringError
Auto Trait Implementations§
impl Forget for BoundedSecretStringError
impl Freeze for BoundedSecretStringError
impl Move for BoundedSecretStringError
impl RefUnwindSafe for BoundedSecretStringError
impl Send for BoundedSecretStringError
impl Sync for BoundedSecretStringError
impl Unpin for BoundedSecretStringError
impl UnsafeUnpin for BoundedSecretStringError
impl UnwindSafe for BoundedSecretStringError
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