pub struct CPU {
pub cores: i32,
pub system_load: f32,
pub lavalink_load: f32,
}Expand description
Statistics related to Lavalink server CPU usage.
Fields§
§cores: i32The amount of cores the node has.
system_load: f32The system load of the node.
lavalink_load: f32The load of Lavalink on the node.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CPU
impl<'de> Deserialize<'de> for CPU
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 CPU
impl RefUnwindSafe for CPU
impl Send for CPU
impl Sync for CPU
impl Unpin for CPU
impl UnwindSafe for CPU
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