pub enum SetSubdomainSegmentError {
UrlDoesNotHaveSubdomain,
SegmentNotFound,
SetSubdomainError(SetSubdomainError),
}Expand description
The enum of errors BetterUrl::set_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 SetSubdomainSegmentError
impl Debug for SetSubdomainSegmentError
Source§impl Display for SetSubdomainSegmentError
impl Display for SetSubdomainSegmentError
Source§impl Error for SetSubdomainSegmentError
impl Error for SetSubdomainSegmentError
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 SetSubdomainSegmentError
impl From<SetSubdomainError> for SetSubdomainSegmentError
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 SetSubdomainSegmentError
impl RefUnwindSafe for SetSubdomainSegmentError
impl Send for SetSubdomainSegmentError
impl Sync for SetSubdomainSegmentError
impl Unpin for SetSubdomainSegmentError
impl UnwindSafe for SetSubdomainSegmentError
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