pub struct Mpsc { /* private fields */ }
Expand description
A paired mpsc transport.
Implementations§
Trait Implementations§
Source§impl Transport for Mpsc
impl Transport for Mpsc
Source§type SendBuffer = Vec<u64_le>
type SendBuffer = Vec<u64_le>
The buffer type for senders.
Source§type SendFuture<'s> = SendFuture<'s>
type SendFuture<'s> = SendFuture<'s>
The future type for send operations.
Source§type RecvFuture<'r> = RecvFuture<'r>
type RecvFuture<'r> = RecvFuture<'r>
The future type for receive operations.
Source§type RecvBuffer = RecvBuffer
type RecvBuffer = RecvBuffer
The buffer type for receivers.
Source§type Decoder<'b> = &'b mut RecvBuffer
type Decoder<'b> = &'b mut RecvBuffer
The decoder for receive buffers.
Source§fn split(self) -> (Self::Sender, Self::Receiver)
fn split(self) -> (Self::Sender, Self::Receiver)
Splits the transport into a sender and receiver.
Source§fn acquire(_: &Self::Sender) -> Self::SendBuffer
fn acquire(_: &Self::Sender) -> Self::SendBuffer
Acquires an empty send buffer for the transport.
Source§fn encoder(buffer: &mut Self::SendBuffer) -> Self::Encoder<'_>
fn encoder(buffer: &mut Self::SendBuffer) -> Self::Encoder<'_>
Gets the encoder for a buffer.
Source§fn send(sender: &Self::Sender, buffer: Self::SendBuffer) -> Self::SendFuture<'_>
fn send(sender: &Self::Sender, buffer: Self::SendBuffer) -> Self::SendFuture<'_>
Sends an encoded message over the transport.
Source§fn recv(receiver: &mut Self::Receiver) -> Self::RecvFuture<'_>
fn recv(receiver: &mut Self::Receiver) -> Self::RecvFuture<'_>
Receives an encoded message over the transport.
Source§fn decoder(buffer: &mut Self::RecvBuffer) -> Self::Decoder<'_>
fn decoder(buffer: &mut Self::RecvBuffer) -> Self::Decoder<'_>
Gets the decoder for a buffer.
Auto Trait Implementations§
impl Freeze for Mpsc
impl !RefUnwindSafe for Mpsc
impl Send for Mpsc
impl !Sync for Mpsc
impl Unpin for Mpsc
impl !UnwindSafe for Mpsc
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more