pub enum InsertDomainSegmentError {
UrlDoesNotHaveDomain,
SegmentNotFound,
SetDomainError(SetDomainError),
}Expand description
The enum of errors BetterUrl::insert_domain_segment can return.
Variants§
UrlDoesNotHaveDomain
Returned when the URL doesn’t have a domain.
SegmentNotFound
Returned when the segment isn’t found.
SetDomainError(SetDomainError)
Returned when a SetDomainError is encountered.
Trait Implementations§
Source§impl Debug for InsertDomainSegmentError
impl Debug for InsertDomainSegmentError
Source§impl Display for InsertDomainSegmentError
impl Display for InsertDomainSegmentError
Source§impl Error for InsertDomainSegmentError
impl Error for InsertDomainSegmentError
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<SetDomainError> for InsertDomainSegmentError
impl From<SetDomainError> for InsertDomainSegmentError
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 InsertDomainSegmentError
impl RefUnwindSafe for InsertDomainSegmentError
impl Send for InsertDomainSegmentError
impl Sync for InsertDomainSegmentError
impl Unpin for InsertDomainSegmentError
impl UnwindSafe for InsertDomainSegmentError
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