Enum smoltcp::wire::MldRepr[][src]

pub enum MldRepr<'a> {
    Query {
        max_resp_code: u16,
        mcast_addr: Ipv6Address,
        s_flag: bool,
        qrv: u8,
        qqic: u8,
        num_srcs: u16,
        data: &'a [u8],
    },
    Report {
        nr_mcast_addr_rcrds: u16,
        data: &'a [u8],
    },
}

A high-level representation of an MLDv2 packet header.

Variants

Query

Fields of Query

max_resp_code: u16mcast_addr: Ipv6Addresss_flag: boolqrv: u8qqic: u8num_srcs: u16data: &'a [u8]
Report

Fields of Report

nr_mcast_addr_rcrds: u16data: &'a [u8]

Implementations

impl<'a> Repr<'a>[src]

pub fn parse<T: ?Sized>(packet: &Packet<&'a T>) -> Result<Repr<'a>> where
    T: AsRef<[u8]>, 
[src]

Parse an MLDv2 packet and return a high-level representation.

pub fn buffer_len(&self) -> usize[src]

Return the length of a packet that will be emitted from this high-level representation.

pub fn emit<T: ?Sized>(&self, packet: &mut Packet<&mut T>) where
    T: AsRef<[u8]> + AsMut<[u8]>, 
[src]

Emit a high-level representation into an MLDv2 packet.

Trait Implementations

impl<'a> Clone for Repr<'a>[src]

impl<'a> Copy for Repr<'a>[src]

impl<'a> Debug for Repr<'a>[src]

impl<'a> Eq for Repr<'a>[src]

impl<'a> PartialEq<Repr<'a>> for Repr<'a>[src]

impl<'a> StructuralEq for Repr<'a>[src]

impl<'a> StructuralPartialEq for Repr<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Repr<'a>

impl<'a> Send for Repr<'a>

impl<'a> Sync for Repr<'a>

impl<'a> Unpin for Repr<'a>

impl<'a> UnwindSafe for Repr<'a>

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.