pub enum ZoneTransferError {
TransferFailed {
zone: String,
primary: String,
secondary: String,
reason: String,
},
TransferRefused {
zone: String,
primary: String,
},
TransferTimeout {
zone: String,
primary: String,
timeout_secs: u64,
},
}Expand description
Errors related to zone transfer operations (AXFR/IXFR).
These errors occur when attempting to trigger or perform zone transfers between primary and secondary BIND9 instances.
Variants§
TransferFailed
Zone transfer failed (AXFR or IXFR)
Returned when a zone transfer from primary to secondary fails. This could be due to network issues, TSIG authentication failure, or the zone not being configured for transfer.
Fields
TransferRefused
Zone transfer not allowed by primary server
Returned when the primary server refuses zone transfer (typically due to allow-transfer ACL configuration).
TransferTimeout
Zone transfer timeout
Returned when a zone transfer operation exceeds the timeout. This typically indicates a very large zone or network issues.
Trait Implementations§
Source§impl Clone for ZoneTransferError
impl Clone for ZoneTransferError
Source§fn clone(&self) -> ZoneTransferError
fn clone(&self) -> ZoneTransferError
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 ZoneTransferError
impl Debug for ZoneTransferError
Source§impl Display for ZoneTransferError
impl Display for ZoneTransferError
Source§impl Error for ZoneTransferError
impl Error for ZoneTransferError
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 From<ZoneTransferError> for DnsError
impl From<ZoneTransferError> for DnsError
Source§fn from(source: ZoneTransferError) -> Self
fn from(source: ZoneTransferError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ZoneTransferError
impl RefUnwindSafe for ZoneTransferError
impl Send for ZoneTransferError
impl Sync for ZoneTransferError
impl Unpin for ZoneTransferError
impl UnwindSafe for ZoneTransferError
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
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>
Converts
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>
Converts
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.