[−][src]Struct runng::stats::NngStatChild
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]
See nng_stat_name.
pub fn desc(&self) -> Result<&str, Utf8Error>
[src]
See nng_stat_desc.
pub fn stat_type(&self) -> Result<nng_stat_type_enum, EnumFromIntError>
[src]
See nng_stat_type.
pub fn value(&self) -> u64
[src]
See nng_stat_value.
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]
See nng_stat_unit.
pub fn timestamp(&self) -> u64
[src]
See nng_stat_timestamp.
ⓘImportant traits for Iter<'root>pub fn iter(&self) -> Iter
[src]
ⓘImportant traits for Iter<'root>
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,