pub struct ProxyConnectState { /* private fields */ }Expand description
Shared status for an outbound proxy task.
The smoltcp poll loop reads this when the proxy task exits to decide whether the guest should see a clean close or a TCP reset.
Implementations§
Source§impl ProxyConnectState
impl ProxyConnectState
Sourcepub fn mark_connected(&self)
pub fn mark_connected(&self)
Mark the proxy as successfully connected to upstream.
Sourcepub fn mark_policy_denied(&self)
pub fn mark_policy_denied(&self)
Mark the proxy as denied by egress policy before dialing upstream.
Sourcepub fn mark_upstream_connect_failed(&self)
pub fn mark_upstream_connect_failed(&self)
Mark the proxy as failed while dialing upstream.
Sourcepub fn status(&self) -> ProxyConnectStatus
pub fn status(&self) -> ProxyConnectStatus
Load the latest proxy connection status.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ProxyConnectState
impl RefUnwindSafe for ProxyConnectState
impl Send for ProxyConnectState
impl Sync for ProxyConnectState
impl Unpin for ProxyConnectState
impl UnsafeUnpin for ProxyConnectState
impl UnwindSafe for ProxyConnectState
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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