#[non_exhaustive]pub enum DnsSecError {
HmacInvalid,
Message(&'static str),
Msg(String),
Proto(ProtoError),
RingKeyRejected(KeyRejected),
RingUnspecified(Unspecified),
TsigUnsupportedMacAlgorithm(TsigAlgorithm),
TsigWrongKey,
}Expand description
The error kind for dnssec errors that get returned in the crate
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.
HmacInvalid
An HMAC failed to verify
Message(&'static str)
An error with an arbitrary message, referenced as &’static str
Msg(String)
An error with an arbitrary message, stored as String
Proto(ProtoError)
An error got returned by the hickory-proto crate
RingKeyRejected(KeyRejected)
A ring error
RingUnspecified(Unspecified)
A ring error
TsigUnsupportedMacAlgorithm(TsigAlgorithm)
Tsig unsupported mac algorithm
Supported algorithm documented in TsigAlgorithm::supported function.
TsigWrongKey
Tsig key verification failed
Trait Implementations§
Source§impl Clone for DnsSecError
impl Clone for DnsSecError
Source§fn clone(&self) -> DnsSecError
fn clone(&self) -> DnsSecError
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 DnsSecError
impl Debug for DnsSecError
Source§impl Display for DnsSecError
impl Display for DnsSecError
Source§impl Error for DnsSecError
impl Error for DnsSecError
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 From<&'static str> for DnsSecError
impl From<&'static str> for DnsSecError
Source§fn from(msg: &'static str) -> DnsSecError
fn from(msg: &'static str) -> DnsSecError
Converts to this type from the input type.
Source§impl From<DnsSecError> for Error
impl From<DnsSecError> for Error
Source§fn from(e: DnsSecError) -> Self
fn from(e: DnsSecError) -> Self
Converts to this type from the input type.
Source§impl From<KeyRejected> for DnsSecError
impl From<KeyRejected> for DnsSecError
Source§fn from(source: KeyRejected) -> DnsSecError
fn from(source: KeyRejected) -> DnsSecError
Converts to this type from the input type.
Source§impl From<ProtoError> for DnsSecError
impl From<ProtoError> for DnsSecError
Source§fn from(source: ProtoError) -> DnsSecError
fn from(source: ProtoError) -> DnsSecError
Converts to this type from the input type.
Source§impl From<String> for DnsSecError
impl From<String> for DnsSecError
Source§fn from(msg: String) -> DnsSecError
fn from(msg: String) -> DnsSecError
Converts to this type from the input type.
Source§impl From<Unspecified> for DnsSecError
impl From<Unspecified> for DnsSecError
Source§fn from(source: Unspecified) -> DnsSecError
fn from(source: Unspecified) -> DnsSecError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DnsSecError
impl RefUnwindSafe for DnsSecError
impl Send for DnsSecError
impl Sync for DnsSecError
impl Unpin for DnsSecError
impl UnsafeUnpin for DnsSecError
impl UnwindSafe for DnsSecError
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