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