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