pub enum LimitCategory {
Queue,
Resource,
Memory,
Cpu,
}Expand description
What class of bounded resource a gauge tracks. Lets a snapshot / a host hook group and reason about limits beyond just queues.
Variants§
Queue
A bounded channel/buffer with enqueue/dequeue flow (the default).
Resource
A saturating resource counter (fds, processes, sockets, bytes in use).
Memory
A memory/heap envelope.
Cpu
A CPU or wall-clock execution budget.
Implementations§
Trait Implementations§
Source§impl Clone for LimitCategory
impl Clone for LimitCategory
Source§fn clone(&self) -> LimitCategory
fn clone(&self) -> LimitCategory
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 moreimpl Copy for LimitCategory
Source§impl Debug for LimitCategory
impl Debug for LimitCategory
impl Eq for LimitCategory
Source§impl PartialEq for LimitCategory
impl PartialEq for LimitCategory
Source§fn eq(&self, other: &LimitCategory) -> bool
fn eq(&self, other: &LimitCategory) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LimitCategory
Auto Trait Implementations§
impl Freeze for LimitCategory
impl RefUnwindSafe for LimitCategory
impl Send for LimitCategory
impl Sync for LimitCategory
impl Unpin for LimitCategory
impl UnsafeUnpin for LimitCategory
impl UnwindSafe for LimitCategory
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