[][src]Struct runng::stats::NngStatChild

pub struct NngStatChild<'root> { /* fields omitted */ }

Methods

impl<'root> NngStatChild<'root>[src]

Child of statistic node in tree of statistics. See NngStat::child().

pub fn new(node: *mut nng_stat) -> Option<NngStatChild<'root>>[src]

pub fn name(&self) -> Result<&str, Utf8Error>[src]

pub fn desc(&self) -> Result<&str, Utf8Error>[src]

pub fn stat_type(&self) -> Result<nng_stat_type_enum, EnumFromIntError>[src]

pub fn value(&self) -> u64[src]

pub fn string(&self) -> Option<&str>[src]

If the statistic type is of type NNG_STAT_STRING returns the string value. Otherwise, None is returned. See nng_stat_string.

pub fn unit(&self) -> Result<nng_unit_enum, EnumFromIntError>[src]

pub fn timestamp(&self) -> u64[src]

Important traits for Iter<'root>
pub fn iter(&self) -> Iter[src]

Returns an iterator over self and sibling statistics. See nng_stat_next.

pub fn next(&self) -> Option<NngStatChild<'root>>[src]

Get the next sibling statistic. See nng_stat_next.

Trait Implementations

impl<'root> Debug for NngStatChild<'root>[src]

impl<'root, '_> NngStat for NngStatChild<'_>[src]

Auto Trait Implementations

impl<'root> RefUnwindSafe for NngStatChild<'root>

impl<'root> !Send for NngStatChild<'root>

impl<'root> !Sync for NngStatChild<'root>

impl<'root> Unpin for NngStatChild<'root>

impl<'root> UnwindSafe for NngStatChild<'root>

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> From<T> for T[src]

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

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.