pub enum SetHostPortError {
SetHostError(SetHostError),
SetPortError(SetPortError),
CantBeEmpty(CantBeEmpty),
}Expand description
Returned when failing to set the host + port.
Variants§
Trait Implementations§
Source§impl Debug for SetHostPortError
impl Debug for SetHostPortError
Source§impl Display for SetHostPortError
impl Display for SetHostPortError
Source§impl Error for SetHostPortError
impl Error for SetHostPortError
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<CantBeEmpty> for SetHostPortError
impl From<CantBeEmpty> for SetHostPortError
Source§fn from(source: CantBeEmpty) -> Self
fn from(source: CantBeEmpty) -> Self
Converts to this type from the input type.
Source§impl From<SetHostError> for SetHostPortError
impl From<SetHostError> for SetHostPortError
Source§fn from(source: SetHostError) -> Self
fn from(source: SetHostError) -> Self
Converts to this type from the input type.
Source§impl From<SetPortError> for SetHostPortError
impl From<SetPortError> for SetHostPortError
Source§fn from(source: SetPortError) -> Self
fn from(source: SetPortError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SetHostPortError
impl RefUnwindSafe for SetHostPortError
impl Send for SetHostPortError
impl Sync for SetHostPortError
impl Unpin for SetHostPortError
impl UnsafeUnpin for SetHostPortError
impl UnwindSafe for SetHostPortError
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