[−][src]Struct turbulence::unreliable_bincode_channel::UnreliableTypedChannel
Wrapper over an UnreliableBincodeChannel
that only allows a single message type.
Methods
impl<T, P> UnreliableTypedChannel<T, P> where
P: PacketPool,
[src]
P: PacketPool,
pub fn new(
packet_pool: P,
incoming: Receiver<P::Packet>,
outgoing: Sender<P::Packet>
) -> Self
[src]
packet_pool: P,
incoming: Receiver<P::Packet>,
outgoing: Sender<P::Packet>
) -> Self
pub async fn flush<'_>(&'_ mut self) -> Result<(), SendError>
[src]
impl<T, P> UnreliableTypedChannel<T, P> where
T: Serialize,
P: PacketPool,
[src]
T: Serialize,
P: PacketPool,
impl<'a, T, P> UnreliableTypedChannel<T, P> where
T: Deserialize<'a>,
P: PacketPool,
[src]
T: Deserialize<'a>,
P: PacketPool,
Auto Trait Implementations
impl<T, P> !RefUnwindSafe for UnreliableTypedChannel<T, P>
impl<T, P> Send for UnreliableTypedChannel<T, P> where
P: Send,
T: Send,
<P as PacketPool>::Packet: Send,
P: Send,
T: Send,
<P as PacketPool>::Packet: Send,
impl<T, P> Sync for UnreliableTypedChannel<T, P> where
P: Sync,
T: Sync,
<P as PacketPool>::Packet: Send + Sync,
P: Sync,
T: Sync,
<P as PacketPool>::Packet: Send + Sync,
impl<T, P> Unpin for UnreliableTypedChannel<T, P> where
P: Unpin,
T: Unpin,
<P as PacketPool>::Packet: Unpin,
P: Unpin,
T: Unpin,
<P as PacketPool>::Packet: Unpin,
impl<T, P> !UnwindSafe for UnreliableTypedChannel<T, P>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,