pub struct SniProxyHandle {
pub shutdown: Arc<AtomicBool>,
pub listen_addr: SocketAddr,
pub thread: Option<JoinHandle<ProxyStats>>,
}Expand description
Shutdown coordination handle returned by spawn_sni_proxy_in_netns
— held by the supervisor and signalled at cell destroy time.
Fields§
§shutdown: Arc<AtomicBool>Shared shutdown flag. Set to true before signal_sni_proxy_shutdown
to coordinate clean exit.
listen_addr: SocketAddrAddress the proxy listener is bound to inside the cell’s netns.
thread: Option<JoinHandle<ProxyStats>>Join handle for the proxy OS thread. Some until join() consumes it.
Implementations§
Source§impl SniProxyHandle
impl SniProxyHandle
Sourcepub fn join(&mut self) -> Option<ProxyStats>
pub fn join(&mut self) -> Option<ProxyStats>
Signal-flag-set + bounded join. Caller must already have called
signal_sni_proxy_shutdown (or otherwise woken accept) before
this returns. Mirrors DnsProxyHandle::join semantics.
Auto Trait Implementations§
impl Freeze for SniProxyHandle
impl !RefUnwindSafe for SniProxyHandle
impl Send for SniProxyHandle
impl Sync for SniProxyHandle
impl Unpin for SniProxyHandle
impl UnsafeUnpin for SniProxyHandle
impl !UnwindSafe for SniProxyHandle
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more