pub struct DeviceLoad {
pub free_bytes: usize,
pub total_bytes: usize,
pub active_streams: u32,
pub queue_depth: u32,
pub compute_cap: (i32, i32),
}Expand description
Per-device load snapshot returned by [DeviceMsg::Stats]. Used by
the F5 crate::placement::PlacementActor for least-loaded
scheduling.
Fields§
§free_bytes: usize§total_bytes: usize§active_streams: u32§queue_depth: u32§compute_cap: (i32, i32)Trait Implementations§
Source§impl Clone for DeviceLoad
impl Clone for DeviceLoad
Source§fn clone(&self) -> DeviceLoad
fn clone(&self) -> DeviceLoad
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 DeviceLoad
impl Debug for DeviceLoad
impl Copy for DeviceLoad
Auto Trait Implementations§
impl Freeze for DeviceLoad
impl RefUnwindSafe for DeviceLoad
impl Send for DeviceLoad
impl Sync for DeviceLoad
impl Unpin for DeviceLoad
impl UnsafeUnpin for DeviceLoad
impl UnwindSafe for DeviceLoad
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