pub struct AvailableResources {
pub cpu_cores: usize,
pub total_memory: u64,
pub available_memory: u64,
pub io_bandwidth: u64,
pub network_bandwidth: u64,
pub available_disk_space: u64,
pub gpu_info: Vec<GpuInfo>,
}Expand description
Available system resources
Fields§
§cpu_cores: usizeCPU cores
total_memory: u64Total memory (bytes)
available_memory: u64Available memory (bytes)
io_bandwidth: u64I/O bandwidth (bytes/sec)
network_bandwidth: u64Network bandwidth (bytes/sec)
available_disk_space: u64Available disk space (bytes)
gpu_info: Vec<GpuInfo>GPU information
Trait Implementations§
Source§impl Clone for AvailableResources
impl Clone for AvailableResources
Source§fn clone(&self) -> AvailableResources
fn clone(&self) -> AvailableResources
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 moreAuto Trait Implementations§
impl Freeze for AvailableResources
impl RefUnwindSafe for AvailableResources
impl Send for AvailableResources
impl Sync for AvailableResources
impl Unpin for AvailableResources
impl UnwindSafe for AvailableResources
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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