pub struct ServerResources {
pub cpus: Vec<CpuMetric>,
pub max_ram: u64,
pub ram: Vec<RamMetric>,
}Fields§
§cpus: Vec<CpuMetric>§max_ram: u64§ram: Vec<RamMetric>Trait Implementations§
Source§impl Clone for ServerResources
impl Clone for ServerResources
Source§fn clone(&self) -> ServerResources
fn clone(&self) -> ServerResources
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 ServerResources
impl Debug for ServerResources
Source§impl<'de> Deserialize<'de> for ServerResources
impl<'de> Deserialize<'de> for ServerResources
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ServerResources
impl RefUnwindSafe for ServerResources
impl Send for ServerResources
impl Sync for ServerResources
impl Unpin for ServerResources
impl UnwindSafe for ServerResources
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