pub enum SetDomainError {
InvalidDomainSegments(InvalidDomainSegments),
TooLong(TooLong),
InsertNotFound(InsertNotFound),
RangeNotFound(RangeNotFound),
CantEndInANumber(CantEndInANumber),
NonFqdnCantEndInEmpty(NonFqdnCantEndInEmpty),
InvalidDomainSegment(InvalidDomainSegment),
CantBeEmpty(CantBeEmpty),
InvalidDomainHost(InvalidDomainHost),
}Expand description
Returned when failing to set some/all of a domain.
Variants§
InvalidDomainSegments(InvalidDomainSegments)
TooLong(TooLong)
InsertNotFound(InsertNotFound)
RangeNotFound(RangeNotFound)
CantEndInANumber(CantEndInANumber)
NonFqdnCantEndInEmpty(NonFqdnCantEndInEmpty)
InvalidDomainSegment(InvalidDomainSegment)
CantBeEmpty(CantBeEmpty)
InvalidDomainHost(InvalidDomainHost)
Trait Implementations§
Source§impl Debug for SetDomainError
impl Debug for SetDomainError
Source§impl Display for SetDomainError
impl Display for SetDomainError
Source§impl Error for SetDomainError
impl Error for SetDomainError
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<!> for SetDomainError
impl From<!> for SetDomainError
Source§fn from(value: Infallible) -> Self
fn from(value: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<CantBeEmpty> for SetDomainError
impl From<CantBeEmpty> for SetDomainError
Source§fn from(source: CantBeEmpty) -> Self
fn from(source: CantBeEmpty) -> Self
Converts to this type from the input type.
Source§impl From<CantEndInANumber> for SetDomainError
impl From<CantEndInANumber> for SetDomainError
Source§fn from(source: CantEndInANumber) -> Self
fn from(source: CantEndInANumber) -> Self
Converts to this type from the input type.
Source§impl From<InsertNotFound> for SetDomainError
impl From<InsertNotFound> for SetDomainError
Source§fn from(source: InsertNotFound) -> Self
fn from(source: InsertNotFound) -> Self
Converts to this type from the input type.
Source§impl From<InvalidDomainHost> for SetDomainError
impl From<InvalidDomainHost> for SetDomainError
Source§fn from(source: InvalidDomainHost) -> Self
fn from(source: InvalidDomainHost) -> Self
Converts to this type from the input type.
Source§impl From<InvalidDomainSegment> for SetDomainError
impl From<InvalidDomainSegment> for SetDomainError
Source§fn from(source: InvalidDomainSegment) -> Self
fn from(source: InvalidDomainSegment) -> Self
Converts to this type from the input type.
Source§impl From<InvalidDomainSegments> for SetDomainError
impl From<InvalidDomainSegments> for SetDomainError
Source§fn from(source: InvalidDomainSegments) -> Self
fn from(source: InvalidDomainSegments) -> Self
Converts to this type from the input type.
Source§impl From<NonFqdnCantEndInEmpty> for SetDomainError
impl From<NonFqdnCantEndInEmpty> for SetDomainError
Source§fn from(source: NonFqdnCantEndInEmpty) -> Self
fn from(source: NonFqdnCantEndInEmpty) -> Self
Converts to this type from the input type.
Source§impl From<RangeNotFound> for SetDomainError
impl From<RangeNotFound> for SetDomainError
Source§fn from(source: RangeNotFound) -> Self
fn from(source: RangeNotFound) -> Self
Converts to this type from the input type.
Source§impl From<SetDomainError> for SetHostError
impl From<SetDomainError> for SetHostError
Source§fn from(source: SetDomainError) -> Self
fn from(source: SetDomainError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SetDomainError
impl RefUnwindSafe for SetDomainError
impl Send for SetDomainError
impl Sync for SetDomainError
impl Unpin for SetDomainError
impl UnsafeUnpin for SetDomainError
impl UnwindSafe for SetDomainError
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