pub enum SecretStringUtf8Error {
Build(SecretStringBuildError),
InvalidUtf8,
}Expand description
Error ingesting owned bytes as bounded secret text. Never retains input bytes.
Variants§
Build(SecretStringBuildError)
The byte limit or destination allocation policy was not satisfied.
InvalidUtf8
The input was within the limit but was not valid UTF-8.
Trait Implementations§
Source§impl Debug for SecretStringUtf8Error
impl Debug for SecretStringUtf8Error
Source§impl Display for SecretStringUtf8Error
impl Display for SecretStringUtf8Error
Source§impl Error for SecretStringUtf8Error
impl Error for SecretStringUtf8Error
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()
Auto Trait Implementations§
impl Forget for SecretStringUtf8Error
impl Freeze for SecretStringUtf8Error
impl Move for SecretStringUtf8Error
impl RefUnwindSafe for SecretStringUtf8Error
impl Send for SecretStringUtf8Error
impl Sync for SecretStringUtf8Error
impl Unpin for SecretStringUtf8Error
impl UnsafeUnpin for SecretStringUtf8Error
impl UnwindSafe for SecretStringUtf8Error
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