pub struct SystemLoad {
pub queue_depth: u64,
pub utilization: HashMap<ResourceDimension, f64>,
pub total_requests: u64,
pub admitted_requests: u64,
pub rejected_requests: u64,
}Expand description
Current system load
Fields§
§queue_depth: u64§utilization: HashMap<ResourceDimension, f64>§total_requests: u64§admitted_requests: u64§rejected_requests: u64Implementations§
Source§impl SystemLoad
impl SystemLoad
Sourcepub fn is_overloaded(&self) -> bool
pub fn is_overloaded(&self) -> bool
Is the system overloaded?
Sourcepub fn admission_rate(&self) -> f64
pub fn admission_rate(&self) -> f64
Admission rate
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SystemLoad
impl RefUnwindSafe for SystemLoad
impl Send for SystemLoad
impl Sync for SystemLoad
impl Unpin for SystemLoad
impl UnsafeUnpin for SystemLoad
impl UnwindSafe for SystemLoad
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more