pub struct ReverseServerState {
pub active_control: AtomicU32,
pub active_streams: AtomicU32,
pub pending_external: AtomicU32,
pub denied_bind: AtomicU32,
pub dropped_stream_limit: AtomicU32,
pub dropped_pending_limit: AtomicU32,
}Expand description
Active state of the reverse server, exposed for tests and admin hooks.
Fields§
§active_control: AtomicU32Number of currently-active (accepted, awaiting use) control connections.
active_streams: AtomicU32Number of currently-active external streams being relayed.
pending_external: AtomicU32Number of external clients waiting for a control connection.
denied_bind: AtomicU32Number of listeners denied because of allow_bind.
dropped_stream_limit: AtomicU32Number of streams dropped because max_streams_per_listener was reached.
dropped_pending_limit: AtomicU32Number of external clients dropped because max_pending_external was reached.
Implementations§
Source§impl ReverseServerState
impl ReverseServerState
Sourcepub fn snapshot(&self) -> ReverseServerStateSnapshot
pub fn snapshot(&self) -> ReverseServerStateSnapshot
Snapshot of the counters for admin/log display.
Trait Implementations§
Source§impl Debug for ReverseServerState
impl Debug for ReverseServerState
Source§impl Default for ReverseServerState
impl Default for ReverseServerState
Source§fn default() -> ReverseServerState
fn default() -> ReverseServerState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for ReverseServerState
impl RefUnwindSafe for ReverseServerState
impl Send for ReverseServerState
impl Sync for ReverseServerState
impl Unpin for ReverseServerState
impl UnsafeUnpin for ReverseServerState
impl UnwindSafe for ReverseServerState
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