#[non_exhaustive]pub struct Stats {
pub cpu: StatsCpu,
pub frames: Option<StatsFrames>,
pub memory: StatsMemory,
pub players: u64,
pub playing_players: u64,
pub op: Opcode,
pub uptime: u64,
}
Expand description
Statistics about a node and its host.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.cpu: StatsCpu
CPU information about the node’s host.
frames: Option<StatsFrames>
Statistics about audio frames.
memory: StatsMemory
Memory information about the node’s host.
players: u64
The current number of total players (active and not active) within the node.
playing_players: u64
The current number of active players within the node.
op: Opcode
The opcode of the event.
uptime: u64
The uptime of the Lavalink server in seconds.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Stats
impl<'de> Deserialize<'de> for Stats
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
Source§impl From<Stats> for IncomingEvent
impl From<Stats> for IncomingEvent
Source§fn from(event: Stats) -> IncomingEvent
fn from(event: Stats) -> IncomingEvent
Converts to this type from the input type.
impl StructuralPartialEq for Stats
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnwindSafe for Stats
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