pub struct QosRuntime { /* private fields */ }Expand description
Runtime QoS counters used by inbound protocol adapters.
Implementations§
Source§impl QosRuntime
impl QosRuntime
Sourcepub fn reserve_queue(
&self,
policy: &QosPolicy,
) -> Result<QosPermit, RejectReason>
pub fn reserve_queue( &self, policy: &QosPolicy, ) -> Result<QosPermit, RejectReason>
Reserves space in the bounded request queue before active admission.
Sourcepub fn admit_request(
&self,
policy: &QosPolicy,
) -> Result<QosPermit, RejectReason>
pub fn admit_request( &self, policy: &QosPolicy, ) -> Result<QosPermit, RejectReason>
Attempts to admit one inbound request and returns a release-on-drop permit.
Sourcepub fn admit_connection(
&self,
policy: &QosPolicy,
) -> Result<QosPermit, RejectReason>
pub fn admit_connection( &self, policy: &QosPolicy, ) -> Result<QosPermit, RejectReason>
Attempts to admit one open network connection.
Sourcepub fn snapshot(&self) -> QosSnapshot
pub fn snapshot(&self) -> QosSnapshot
Returns the current request budget snapshot for diagnostics and tests.
Trait Implementations§
Source§impl Clone for QosRuntime
impl Clone for QosRuntime
Source§fn clone(&self) -> QosRuntime
fn clone(&self) -> QosRuntime
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QosRuntime
impl Debug for QosRuntime
Source§impl Default for QosRuntime
impl Default for QosRuntime
Source§fn default() -> QosRuntime
fn default() -> QosRuntime
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for QosRuntime
impl RefUnwindSafe for QosRuntime
impl Send for QosRuntime
impl Sync for QosRuntime
impl Unpin for QosRuntime
impl UnsafeUnpin for QosRuntime
impl UnwindSafe for QosRuntime
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