pub enum Decision {
Allowed {
target: String,
via: String,
ms: u128,
},
Refused {
status: u16,
target: String,
reason: String,
ms: u128,
},
Closed {
target: String,
up: u64,
down: u64,
ms: u128,
},
}Expand description
One decision of the proxy. Display gives the log line: allow CONNECT host:port ip=…,
deny 403 host:port reason=…, close host:port up=… down=….
Variants§
Allowed
A tunnel opened: via is ip=… or via host:port (an upstream proxy).
Refused
Refused with an HTTP status; target is empty when the request never named one.
Closed
A tunnel ended, with the bytes each way.
Trait Implementations§
impl Eq for Decision
impl StructuralPartialEq for Decision
Auto Trait Implementations§
impl Forget for Decision
impl Freeze for Decision
impl Move for Decision
impl RefUnwindSafe for Decision
impl Send for Decisionwhere
RawVecInner: Send,
impl Sync for Decisionwhere
RawVecInner: Sync,
impl Unpin for Decision
impl UnsafeUnpin for Decision
impl UnwindSafe for Decisionwhere
RawVecInner: UnwindSafe,
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