[][src]Enum snmp_mp::PduType

pub enum PduType {
    GetRequest,
    GetNextRequest,
    Response,
    SetRequest,
    GetBulkRequest,
    InformRequest,
    SnmpTrap,
    Report,
}

Represents a PDU type.

PDU types are encoded as implicit tags.

Variants

GetRequest
GetNextRequest
Response
SetRequest
GetBulkRequest
InformRequest
SnmpTrap
Report

Trait Implementations

impl Clone for PduType[src]

impl Copy for PduType[src]

impl Debug for PduType[src]

impl Default for PduType[src]

impl Eq for PduType[src]

impl Hash for PduType[src]

impl PartialEq<PduType> for PduType[src]

impl StructuralEq for PduType[src]

impl StructuralPartialEq for PduType[src]

impl TryFrom<u64> for PduType[src]

type Error = IntToPduTypeError

The type returned in the event of a conversion error.

fn try_from(integer: u64) -> Result<Self, Self::Error>[src]

Tries to create a PduType from a u64.

Errors

This returns an error if the u64 doesn't match a PDU type.

Auto Trait Implementations

impl RefUnwindSafe for PduType

impl Send for PduType

impl Sync for PduType

impl Unpin for PduType

impl UnwindSafe for PduType

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.