pub enum RetrieveRecordError<T> {
Unauthorized,
NotFound,
Custom(T),
}
Expand description
Represents an error that occured when retrieving DNS records using Zone::list_records
or Zone::get_record
.
Providers can provide a custom error type (Zone::CustomRetrieveError
) and return it using RetrieveRecordError::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 record with the given ID.
Custom(T)
Provides a custom, provider-specific error of type T
.
Trait Implementations§
Source§impl<T: Clone> Clone for RetrieveRecordError<T>
impl<T: Clone> Clone for RetrieveRecordError<T>
Source§fn clone(&self) -> RetrieveRecordError<T>
fn clone(&self) -> RetrieveRecordError<T>
Returns a copy 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<T: Debug> Debug for RetrieveRecordError<T>
impl<T: Debug> Debug for RetrieveRecordError<T>
Source§impl<T> Display for RetrieveRecordError<T>where
T: Display,
impl<T> Display for RetrieveRecordError<T>where
T: Display,
Source§impl<T> Error for RetrieveRecordError<T>
impl<T> Error for RetrieveRecordError<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 RetrieveRecordError<T>
impl<T> From<T> for RetrieveRecordError<T>
Source§impl<T: Hash> Hash for RetrieveRecordError<T>
impl<T: Hash> Hash for RetrieveRecordError<T>
Source§impl<T: PartialEq> PartialEq for RetrieveRecordError<T>
impl<T: PartialEq> PartialEq for RetrieveRecordError<T>
impl<T: Copy> Copy for RetrieveRecordError<T>
impl<T: Eq> Eq for RetrieveRecordError<T>
impl<T> StructuralPartialEq for RetrieveRecordError<T>
Auto Trait Implementations§
impl<T> Freeze for RetrieveRecordError<T>where
T: Freeze,
impl<T> RefUnwindSafe for RetrieveRecordError<T>where
T: RefUnwindSafe,
impl<T> Send for RetrieveRecordError<T>where
T: Send,
impl<T> Sync for RetrieveRecordError<T>where
T: Sync,
impl<T> Unpin for RetrieveRecordError<T>where
T: Unpin,
impl<T> UnwindSafe for RetrieveRecordError<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