[][src]Trait ethox::wire::Payload

pub trait Payload {
    fn payload(&self) -> &payload;
}

A specialized, internal variant of Borrow<payload>.

This ensures that the implementation is also consistent and always resolves to the same memory region, an implementation detail that other parts of the crate could rely upon. The guarantee is that the values in the referred to byte region will not appear differently, which is trivial when we guarantee that the byte region is part of our object and does not change.

Required methods

fn payload(&self) -> &payload

Get the bytes wrapped in the payload newtype.

Loading content...

Implementations on Foreign Types

impl Payload for Vec<u8>[src]

Loading content...

Implementors

impl Payload for payload[src]

impl Payload for [u8][src]

impl<'_> Payload for Slice<'_, u8>[src]

impl<'_, P: Payload + ?Sized> Payload for &'_ P[src]

impl<'_, P: Payload + ?Sized> Payload for &'_ mut P[src]

impl<'_, P: Payload> Payload for Out<'_, P>[src]

impl<'a, P: Payload> Payload for IpPacket<'a, P>[src]

impl<C: Payload> Payload for Partial<C>[src]

impl<T: Payload> Payload for Frame<T>[src]

impl<T: Payload> Payload for ethox::wire::ip::v4::Packet<T>[src]

impl<T: Payload> Payload for ethox::wire::ip::v6::Packet<T>[src]

impl<T: Payload> Payload for ethox::wire::udp::Packet<T>[src]

Loading content...