pub enum EndpointError {
EmptyHost,
UnclosedBracket,
BadPort,
}Expand description
Why an endpoint is not a host:port.
Variants§
EmptyHost
The endpoint names no host.
UnclosedBracket
A bracketed IPv6 literal with no closing ].
BadPort
A port was written, and is not one.
Trait Implementations§
Source§impl Clone for EndpointError
impl Clone for EndpointError
impl Copy for EndpointError
Source§impl Debug for EndpointError
impl Debug for EndpointError
Source§impl Display for EndpointError
impl Display for EndpointError
impl Eq for EndpointError
Source§impl PartialEq for EndpointError
impl PartialEq for EndpointError
impl StructuralPartialEq for EndpointError
Auto Trait Implementations§
impl Freeze for EndpointError
impl RefUnwindSafe for EndpointError
impl Send for EndpointError
impl Sync for EndpointError
impl Unpin for EndpointError
impl UnsafeUnpin for EndpointError
impl UnwindSafe for EndpointError
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