pub struct SetHostError(pub ParseError);Expand description
The error BetterUrl::set_host returns when it fails.
Tuple Fields§
§0: ParseErrorTrait Implementations§
Source§impl Debug for SetHostError
impl Debug for SetHostError
Source§impl Display for SetHostError
impl Display for SetHostError
Source§impl Error for SetHostError
impl Error for SetHostError
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<ParseError> for SetHostError
impl From<ParseError> for SetHostError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<SetHostError> for SetDomainError
impl From<SetHostError> for SetDomainError
Source§fn from(source: SetHostError) -> Self
fn from(source: SetHostError) -> Self
Converts to this type from the input type.
Source§impl From<SetHostError> for SetDomainMiddleError
impl From<SetHostError> for SetDomainMiddleError
Source§fn from(source: SetHostError) -> Self
fn from(source: SetHostError) -> Self
Converts to this type from the input type.
Source§impl From<SetHostError> for SetDomainSuffixError
impl From<SetHostError> for SetDomainSuffixError
Source§fn from(source: SetHostError) -> Self
fn from(source: SetHostError) -> Self
Converts to this type from the input type.
Source§impl From<SetHostError> for SetNotDomainSuffixError
impl From<SetHostError> for SetNotDomainSuffixError
Source§fn from(source: SetHostError) -> Self
fn from(source: SetHostError) -> Self
Converts to this type from the input type.
Source§impl From<SetHostError> for SetRegDomainError
impl From<SetHostError> for SetRegDomainError
Source§fn from(source: SetHostError) -> Self
fn from(source: SetHostError) -> Self
Converts to this type from the input type.
Source§impl From<SetHostError> for SetSubdomainError
impl From<SetHostError> for SetSubdomainError
Source§fn from(source: SetHostError) -> Self
fn from(source: SetHostError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SetHostError
impl RefUnwindSafe for SetHostError
impl Send for SetHostError
impl Sync for SetHostError
impl Unpin for SetHostError
impl UnwindSafe for SetHostError
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