[][src]Struct turbulence::reliable_bincode_channel::ReliableTypedChannel

pub struct ReliableTypedChannel<T> { /* fields omitted */ }

Wrapper over an ReliableBincodeChannel that only allows a single message type.

Implementations

impl<T> ReliableTypedChannel<T>[src]

pub fn new(channel: ReliableBincodeChannel) -> Self[src]

pub async fn flush<'_>(&'_ mut self) -> Result<(), Error>[src]

impl<T: Serialize> ReliableTypedChannel<T>[src]

pub async fn send<'_, '_>(&'_ mut self, msg: &'_ T) -> Result<(), Error>[src]

impl<'a, T: Deserialize<'a>> ReliableTypedChannel<T>[src]

pub async fn recv(&'a mut self) -> Result<T, Error>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for ReliableTypedChannel<T>

impl<T> Send for ReliableTypedChannel<T> where
    T: Send

impl<T> Sync for ReliableTypedChannel<T> where
    T: Sync

impl<T> Unpin for ReliableTypedChannel<T> where
    T: Unpin

impl<T> !UnwindSafe for ReliableTypedChannel<T>

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, 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.