pub enum CreateRecordError<T> {
Unauthorized,
UnsupportedType,
InvalidRecord,
Custom(T),
}
Expand description
Represents an error that occured when creating DNS records using CreateRecord::create_record
.
Providers can provide a custom error type (CreateRecord::CustomCreateError
) and return it using CreateRecordError::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.
UnsupportedType
Indicates that the DNS provider does not support the specified record type.
InvalidRecord
Indicates that the record value is invalid.
Custom(T)
Provides a custom, provider-specific error of type T
.
Trait Implementations§
Source§impl<T: Clone> Clone for CreateRecordError<T>
impl<T: Clone> Clone for CreateRecordError<T>
Source§fn clone(&self) -> CreateRecordError<T>
fn clone(&self) -> CreateRecordError<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 CreateRecordError<T>
impl<T: Debug> Debug for CreateRecordError<T>
Source§impl<T> Display for CreateRecordError<T>where
T: Display,
impl<T> Display for CreateRecordError<T>where
T: Display,
Source§impl<T> Error for CreateRecordError<T>
impl<T> Error for CreateRecordError<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 CreateRecordError<T>
impl<T> From<T> for CreateRecordError<T>
Source§impl<T: Hash> Hash for CreateRecordError<T>
impl<T: Hash> Hash for CreateRecordError<T>
Source§impl<T: PartialEq> PartialEq for CreateRecordError<T>
impl<T: PartialEq> PartialEq for CreateRecordError<T>
impl<T: Copy> Copy for CreateRecordError<T>
impl<T: Eq> Eq for CreateRecordError<T>
impl<T> StructuralPartialEq for CreateRecordError<T>
Auto Trait Implementations§
impl<T> Freeze for CreateRecordError<T>where
T: Freeze,
impl<T> RefUnwindSafe for CreateRecordError<T>where
T: RefUnwindSafe,
impl<T> Send for CreateRecordError<T>where
T: Send,
impl<T> Sync for CreateRecordError<T>where
T: Sync,
impl<T> Unpin for CreateRecordError<T>where
T: Unpin,
impl<T> UnwindSafe for CreateRecordError<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