Struct icecast_stats::IcecastStats[][src]

pub struct IcecastStats {
    pub source: Option<IcecastStatsSourceEnum>,
    // some fields omitted
}

Basic server information

Fields

source: Option<IcecastStatsSourceEnum>

List of active streaming sources

Implementations

impl IcecastStats[src]

pub fn admin(&self) -> &String[src]

As set in the server config, this should contain contact details for getting in touch with the server administrator. Usually this will be an email address, but as this can be an arbitrary string it could also be a phone number.

Example: icemaster@localhost

pub fn client_connections(&self) -> &Option<u32>[src]

Client connections are basically anything that is not a source connection. These include listeners (not concurrent, but cumulative), any admin function accesses, and any static content (file serving) accesses. This is an accumulating counter.

pub fn clients(&self) -> &Option<u32>[src]

Number of currently active client connections.

pub fn connections(&self) -> &Option<u32>[src]

The total of all inbound TCP connections since start-up. This is an accumulating counter.

pub fn file_connections(&self) -> &Option<u32>[src]

This is an accumulating counter.

pub fn host(&self) -> &String[src]

As set in the server config, this should be the full DNS resolveable name or FQDN for the host on which this Icecast instance is running.

Example: localhost

pub fn listener_connections(&self) -> &Option<u32>[src]

Number of listener connections to mount points. This is an accumulating counter.

pub fn listeners(&self) -> &Option<u32>[src]

Number of currently active listener connections.

pub fn location(&self) -> &String[src]

As set in the server config, this is a free form field that should describe e.g. the physical location of this server.

Example: Earth

pub fn server_id(&self) -> &String[src]

Defaults to the version string of the currently running Icecast server. While not recommended it can be overriden in the server config.

Example: Icecast 2.4.4

pub fn source_client_connections(&self) -> &Option<u32>[src]

Source client connections are the number of times (cumulative since start-up, not just currently connected) a source client has connected to Icecast. This is an accumulating counter.

pub fn source_relay_connections(&self) -> &Option<u32>[src]

Number of outbound relay connections to (master) icecast servers. This is an accumulating counter.

pub fn source_total_connections(&self) -> &Option<u32>[src]

Both clients and relays. This is an accumulating counter.

pub fn sources(&self) -> &Option<u32>[src]

The total of currently connected sources.

pub fn stats(&self) -> &Option<u32>[src]

The total of currently connected STATS clients.

pub fn stats_connections(&self) -> &Option<u32>[src]

Number of times a stats client has connected to Icecast. This is an accumulating counter.

pub fn server_start_iso8601(&self) -> &String[src]

Timestamp of server startup in ISO 8601 date format.

Example: 2021-04-09T21:49:50+0200

Trait Implementations

impl Clone for IcecastStats[src]

impl Debug for IcecastStats[src]

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

impl Serialize for IcecastStats[src]

Auto Trait Implementations

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> 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.