[][src]Enum runng_sys::nng_unit_enum

#[repr(u32)]
pub enum nng_unit_enum {
    NNG_UNIT_NONE,
    NNG_UNIT_BYTES,
    NNG_UNIT_MESSAGES,
    NNG_UNIT_MILLIS,
    NNG_UNIT_EVENTS,
}

Variants

NNG_UNIT_NONE
NNG_UNIT_BYTES
NNG_UNIT_MESSAGES
NNG_UNIT_MILLIS
NNG_UNIT_EVENTS

Methods

impl nng_unit_enum[src]

pub fn try_convert_from(value: i32) -> Option<Self>[src]

Converts value returned by nng_stat_unit into nng_unit_enum.

Trait Implementations

impl Clone for nng_unit_enum[src]

impl Copy for nng_unit_enum[src]

impl Debug for nng_unit_enum[src]

impl Eq for nng_unit_enum[src]

impl Hash for nng_unit_enum[src]

impl PartialEq<nng_unit_enum> for nng_unit_enum[src]

impl StructuralEq for nng_unit_enum[src]

impl StructuralPartialEq for nng_unit_enum[src]

impl TryFrom<i32> for nng_unit_enum[src]

type Error = EnumFromIntError

The type returned in the event of a conversion error.

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