#[non_exhaustive]pub enum Refusal {
Address(SocketAddr, Forbidden),
Denied(SocketAddr, Decision),
Unreachable(String),
}Expand description
Why no connection was made.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Address(SocketAddr, Forbidden)
A resolved address the proxy never connects to.
Denied(SocketAddr, Decision)
A resolved address a policy deny rule matches, with that rule’s decision.
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