[][src]Struct protocol::wire::dgram::Pipeline

pub struct Pipeline<P: Parcel, M: Pipeline> {
    pub middleware: M,
    pub settings: Settings,
    // some fields omitted
}

A datagram-based packet pipeline.

Fields

middleware: Msettings: Settings

Implementations

impl<P, M> Pipeline<P, M> where
    P: Parcel,
    M: Pipeline
[src]

pub fn new(middleware: M, settings: Settings) -> Self[src]

pub fn receive_from(&mut self, buffer: &mut dyn Read) -> Result<P, Error>[src]

Reads a packet from a buffer which contains a single packet.

pub fn send_to(
    &mut self,
    buffer: &mut dyn Write,
    packet: &P
) -> Result<(), Error>
[src]

Writes a packet into a buffer.

Trait Implementations

impl<P: Clone + Parcel, M: Clone + Pipeline> Clone for Pipeline<P, M>[src]

impl<P: Debug + Parcel, M: Debug + Pipeline> Debug for Pipeline<P, M>[src]

Auto Trait Implementations

impl<P, M> RefUnwindSafe for Pipeline<P, M> where
    M: RefUnwindSafe,
    P: RefUnwindSafe

impl<P, M> Send for Pipeline<P, M> where
    M: Send,
    P: Send

impl<P, M> Sync for Pipeline<P, M> where
    M: Sync,
    P: Sync

impl<P, M> Unpin for Pipeline<P, M> where
    M: Unpin,
    P: Unpin

impl<P, M> UnwindSafe for Pipeline<P, M> where
    M: UnwindSafe,
    P: UnwindSafe

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.