pub enum InsertDomainSuffixSegmentError {
UrlDoesNotHaveDomainSuffix,
SegmentNotFound,
SetDomainSuffixError(SetDomainSuffixError),
}Expand description
The enum of errors BetterUrl::insert_domain_suffix_segment can return.
Variants§
UrlDoesNotHaveDomainSuffix
Returned when the URL doesn’t have a domain suffix.
SegmentNotFound
Returned when the segment isn’t found.
SetDomainSuffixError(SetDomainSuffixError)
Returned when a SetDomainSuffixError is encountered.
Trait Implementations§
Source§impl Error for InsertDomainSuffixSegmentError
impl Error for InsertDomainSuffixSegmentError
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<SetDomainSuffixError> for InsertDomainSuffixSegmentError
impl From<SetDomainSuffixError> for InsertDomainSuffixSegmentError
Source§fn from(source: SetDomainSuffixError) -> Self
fn from(source: SetDomainSuffixError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InsertDomainSuffixSegmentError
impl RefUnwindSafe for InsertDomainSuffixSegmentError
impl Send for InsertDomainSuffixSegmentError
impl Sync for InsertDomainSuffixSegmentError
impl Unpin for InsertDomainSuffixSegmentError
impl UnwindSafe for InsertDomainSuffixSegmentError
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