Struct twilight_lavalink::model::incoming::Stats[][src]

#[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,
}

Statistics about a node and its host.

Fields (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

impl Clone for Stats[src]

impl Debug for Stats[src]

impl<'de> Deserialize<'de> for Stats[src]

impl From<Stats> for IncomingEvent[src]

impl PartialEq<Stats> for Stats[src]

impl Serialize for Stats[src]

impl StructuralPartialEq for Stats[src]

Auto Trait Implementations

impl RefUnwindSafe for Stats

impl Send for Stats

impl Sync for Stats

impl Unpin for Stats

impl UnwindSafe for Stats

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,