[−][src]Struct protocol::wire::dgram::Pipeline
A datagram-based packet pipeline.
Fields
middleware: M
settings: Settings
Methods
impl<P, M> Pipeline<P, M> where
P: Parcel,
M: Pipeline,
[src]
P: Parcel,
M: Pipeline,
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]
&mut self,
buffer: &mut dyn Write,
packet: &P
) -> Result<(), Error>
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> Send for Pipeline<P, M> where
M: Send,
P: Send,
M: Send,
P: Send,
impl<P, M> Sync for Pipeline<P, M> where
M: Sync,
P: Sync,
M: Sync,
P: Sync,
impl<P, M> Unpin for Pipeline<P, M> where
M: Unpin,
P: Unpin,
M: Unpin,
P: Unpin,
impl<P, M> UnwindSafe for Pipeline<P, M> where
M: UnwindSafe,
P: UnwindSafe,
M: UnwindSafe,
P: UnwindSafe,
impl<P, M> RefUnwindSafe for Pipeline<P, M> where
M: RefUnwindSafe,
P: RefUnwindSafe,
M: RefUnwindSafe,
P: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,