pub struct CapacityObservation { /* private fields */ }Implementations§
Source§impl CapacityObservation
impl CapacityObservation
pub fn accepted( budget: u64, limit: u64, used: u64, bottleneck: BottleneckIdentity, ) -> Self
pub fn rejected( budget: u64, limit: u64, used: u64, bottleneck: BottleneckIdentity, reason: RejectReason, ) -> Self
pub fn accepted_dimension( dimension: CapacityDimension, budget: u64, limit: u64, used: u64, bottleneck: BottleneckIdentity, elapsed_ms: u64, ) -> Self
pub fn rejected_dimension( dimension: CapacityDimension, budget: u64, limit: u64, used: u64, bottleneck: BottleneckIdentity, reason: RejectReason, elapsed_ms: u64, ) -> Self
Auto Trait Implementations§
impl Freeze for CapacityObservation
impl RefUnwindSafe for CapacityObservation
impl Send for CapacityObservation
impl Sync for CapacityObservation
impl Unpin for CapacityObservation
impl UnsafeUnpin for CapacityObservation
impl UnwindSafe for CapacityObservation
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