pub enum RetrieveZoneError<T> {
Unauthorized,
NotFound,
Custom(T),
}Expand description
Represents an error that occured when retrieving DNS zones using Provider::list_zones or Provider::get_zone.
Providers can provide a custom error type (Provider::CustomRetrieveError) and return it using RetrieveZoneError::Custom to extend the pool of well-defined errors.
Refer to the provider’s documentation for more information.
Variants§
Indicates that the DNS provider is not authorized to execute this action.
NotFound
Indicates that there is no zone with the given ID.
Custom(T)
Provides a custom, provider-specific error of type T.
Trait Implementations§
Source§impl<T: Clone> Clone for RetrieveZoneError<T>
impl<T: Clone> Clone for RetrieveZoneError<T>
Source§fn clone(&self) -> RetrieveZoneError<T>
fn clone(&self) -> RetrieveZoneError<T>
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 moreimpl<T: Copy> Copy for RetrieveZoneError<T>
Source§impl<T: Debug> Debug for RetrieveZoneError<T>
impl<T: Debug> Debug for RetrieveZoneError<T>
Source§impl<T> Display for RetrieveZoneError<T>where
T: Display,
impl<T> Display for RetrieveZoneError<T>where
T: Display,
impl<T: Eq> Eq for RetrieveZoneError<T>
Source§impl<T> Error for RetrieveZoneError<T>
impl<T> Error for RetrieveZoneError<T>
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<T> From<T> for RetrieveZoneError<T>
impl<T> From<T> for RetrieveZoneError<T>
Source§impl<T: Hash> Hash for RetrieveZoneError<T>
impl<T: Hash> Hash for RetrieveZoneError<T>
Source§impl<T: PartialEq> PartialEq for RetrieveZoneError<T>
impl<T: PartialEq> PartialEq for RetrieveZoneError<T>
Source§fn eq(&self, other: &RetrieveZoneError<T>) -> bool
fn eq(&self, other: &RetrieveZoneError<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<T> StructuralPartialEq for RetrieveZoneError<T>
Auto Trait Implementations§
impl<T> Freeze for RetrieveZoneError<T>where
T: Freeze,
impl<T> RefUnwindSafe for RetrieveZoneError<T>where
T: RefUnwindSafe,
impl<T> Send for RetrieveZoneError<T>where
T: Send,
impl<T> Sync for RetrieveZoneError<T>where
T: Sync,
impl<T> Unpin for RetrieveZoneError<T>where
T: Unpin,
impl<T> UnsafeUnpin for RetrieveZoneError<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for RetrieveZoneError<T>where
T: UnwindSafe,
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