pub enum RecordError {
RecordNotFound {
name: String,
zone: String,
server: String,
},
RecordUpdateFailed {
name: String,
zone: String,
server: String,
reason: String,
},
RecordDeletionFailed {
name: String,
zone: String,
server: String,
reason: String,
},
InvalidRecordData {
name: String,
zone: String,
reason: String,
},
}Expand description
Errors that can occur during DNS record operations via Hickory DNS client.
These errors represent failures when performing dynamic DNS updates (nsupdate) or querying DNS records using the Hickory DNS client library.
Variants§
RecordNotFound
DNS record not found when querying the primary server (NXDOMAIN or no records)
Returned when querying for a DNS record that doesn’t exist in the zone. This is typically returned as an NXDOMAIN response or an empty answer section.
Fields
RecordUpdateFailed
Failed to add or update a DNS record via dynamic update
Returned when a dynamic DNS update (nsupdate) fails. This could be due to TSIG authentication failure, zone not allowing updates, or invalid record data.
Fields
RecordDeletionFailed
Failed to delete a DNS record via dynamic update
Returned when attempting to delete a DNS record via nsupdate fails.
Fields
InvalidRecordData
Invalid record data (malformed IP, invalid FQDN, etc.)
Returned when record data fails validation before attempting to create/update. This includes invalid IP addresses, malformed FQDNs, or out-of-range TTL values.
Trait Implementations§
Source§impl Clone for RecordError
impl Clone for RecordError
Source§fn clone(&self) -> RecordError
fn clone(&self) -> RecordError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RecordError
impl Debug for RecordError
Source§impl Display for RecordError
impl Display for RecordError
Source§impl Error for RecordError
impl Error for RecordError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<RecordError> for DnsError
impl From<RecordError> for DnsError
Source§fn from(source: RecordError) -> Self
fn from(source: RecordError) -> Self
Auto Trait Implementations§
impl Freeze for RecordError
impl RefUnwindSafe for RecordError
impl Send for RecordError
impl Sync for RecordError
impl Unpin for RecordError
impl UnwindSafe for RecordError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.