pub struct Unspecified;Expand description
A generic error type representing an unspecified failure in cryptographic operations.
In cryptographic contexts, it is often necessary to hide the specific reason for
an operation’s failure to prevent leaking sensitive information to potential attackers.
Unspecified serves this purpose by providing a simple, non-descriptive error type
that can be used in situations where the cause of the failure should not be exposed.
Trait Implementations§
Source§impl Clone for Unspecified
impl Clone for Unspecified
Source§fn clone(&self) -> Unspecified
fn clone(&self) -> Unspecified
Returns a duplicate of the value. Read more
1.0.0 · 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 Unspecified
impl Debug for Unspecified
Source§impl Display for Unspecified
impl Display for Unspecified
Source§impl Error for Unspecified
Available on crate feature std only.
impl Error for Unspecified
Available on crate feature
std 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 Error for Unspecified
Available on crate feature embedded-io only.
impl Error for Unspecified
Available on crate feature
embedded-io only.Source§impl From<HexError> for Unspecified
Available on non-llvm_ir_check only.
impl From<HexError> for Unspecified
Available on non-
llvm_ir_check only.Source§impl From<Infallible> for Unspecified
impl From<Infallible> for Unspecified
Source§fn from(_value: Infallible) -> Self
fn from(_value: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<InvalidSize> for Unspecified
impl From<InvalidSize> for Unspecified
Source§fn from(_value: InvalidSize) -> Self
fn from(_value: InvalidSize) -> Self
Converts to this type from the input type.
Source§impl<State: Poly1305State> From<Poly1305<State>> for Unspecified
Available on crate feature allow-non-fips only.
impl<State: Poly1305State> From<Poly1305<State>> for Unspecified
Available on crate feature
allow-non-fips only.Source§impl From<StreamPoly1305> for Unspecified
Available on crate feature allow-non-fips only.
impl From<StreamPoly1305> for Unspecified
Available on crate feature
allow-non-fips only.Source§fn from(value: StreamPoly1305) -> Self
fn from(value: StreamPoly1305) -> Self
Converts to this type from the input type.
Source§impl From<StreamPoly1305Aead> for Unspecified
Available on crate feature allow-non-fips only.
impl From<StreamPoly1305Aead> for Unspecified
Available on crate feature
allow-non-fips only.Source§fn from(value: StreamPoly1305Aead) -> Self
fn from(value: StreamPoly1305Aead) -> Self
Converts to this type from the input type.
Source§impl Hash for Unspecified
impl Hash for Unspecified
Source§impl Ord for Unspecified
impl Ord for Unspecified
Source§fn cmp(&self, other: &Unspecified) -> Ordering
fn cmp(&self, other: &Unspecified) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Unspecified
impl PartialEq for Unspecified
Source§impl PartialOrd for Unspecified
impl PartialOrd for Unspecified
impl Copy for Unspecified
impl Eq for Unspecified
impl StructuralPartialEq for Unspecified
Auto Trait Implementations§
impl Freeze for Unspecified
impl RefUnwindSafe for Unspecified
impl Send for Unspecified
impl Sync for Unspecified
impl Unpin for Unspecified
impl UnwindSafe for Unspecified
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