pub enum Refusal {
Address(SocketAddr, Forbidden),
Unreachable(String),
}Expand description
Why no connection was made.
Variants§
Address(SocketAddr, Forbidden)
A resolved address the proxy never connects to.
Unreachable(String)
The name did not resolve, or no address accepted the connection.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Refusal
impl RefUnwindSafe for Refusal
impl Send for Refusal
impl Sync for Refusal
impl Unpin for Refusal
impl UnsafeUnpin for Refusal
impl UnwindSafe for Refusal
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