pub struct SourceIngressProbe { /* private fields */ }Expand description
Shared atomic counters for ingress pressure (items/bytes).
Implementations§
Source§impl SourceIngressProbe
impl SourceIngressProbe
Sourcepub fn occupancy(&self, policy: &EdgePolicy) -> EdgeOccupancy
pub fn occupancy(&self, policy: &EdgePolicy) -> EdgeOccupancy
Build an occupancy snapshot from the current probe counters using
policy to compute the watermark.
Trait Implementations§
Source§impl Clone for SourceIngressProbe
impl Clone for SourceIngressProbe
Source§fn clone(&self) -> SourceIngressProbe
fn clone(&self) -> SourceIngressProbe
Returns a duplicate of the value. Read more
1.0.0 · 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 SourceIngressProbe
impl Debug for SourceIngressProbe
Source§impl Default for SourceIngressProbe
impl Default for SourceIngressProbe
Source§impl IngressProbe for SourceIngressProbe
impl IngressProbe for SourceIngressProbe
Source§fn occupancy(&self, policy: &EdgePolicy) -> EdgeOccupancy
fn occupancy(&self, policy: &EdgePolicy) -> EdgeOccupancy
Return the current ingress occupancy snapshot using
policy to compute
the watermark consistently with real edges.Auto Trait Implementations§
impl Freeze for SourceIngressProbe
impl RefUnwindSafe for SourceIngressProbe
impl Send for SourceIngressProbe
impl Sync for SourceIngressProbe
impl Unpin for SourceIngressProbe
impl UnsafeUnpin for SourceIngressProbe
impl UnwindSafe for SourceIngressProbe
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