pub struct Mpsc { /* private fields */ }
Expand description
A paired mpsc transport which runs on fuchsia-async by default.
Implementations§
Trait Implementations§
Source§impl HasExecutor for Mpsc
impl HasExecutor for Mpsc
Source§impl Transport for Mpsc
impl Transport for Mpsc
The shared part of the transport. It is provided by shared reference
while sending and receiving. For an MPSC, this would contain a sender.
Source§type Exclusive = <Mpsc as Transport>::Exclusive
type Exclusive = <Mpsc as Transport>::Exclusive
The exclusive part of the transport. It is provided by mutable reference
only while receiving. For an MPSC, this would contain a receiver.
Source§type SendBuffer = <Mpsc as Transport>::SendBuffer
type SendBuffer = <Mpsc as Transport>::SendBuffer
The buffer type for sending.
Source§type SendFutureState = <Mpsc as Transport>::SendFutureState
type SendFutureState = <Mpsc as Transport>::SendFutureState
The future state for send operations.
Source§type RecvFutureState = <Mpsc as Transport>::RecvFutureState
type RecvFutureState = <Mpsc as Transport>::RecvFutureState
The future state for receive operations.
Source§type RecvBuffer = <Mpsc as Transport>::RecvBuffer
type RecvBuffer = <Mpsc as Transport>::RecvBuffer
The buffer type for receivers.
Source§fn split(self) -> (Self::Shared, Self::Exclusive)
fn split(self) -> (Self::Shared, Self::Exclusive)
Splits the transport into shared and exclusive pieces.
Source§fn acquire(shared: &Self::Shared) -> Self::SendBuffer
fn acquire(shared: &Self::Shared) -> Self::SendBuffer
Acquires an empty send buffer for the transport.
Source§fn begin_send(
shared: &Self::Shared,
buffer: Self::SendBuffer,
) -> Self::SendFutureState
fn begin_send( shared: &Self::Shared, buffer: Self::SendBuffer, ) -> Self::SendFutureState
Begins sending a
SendBuffer
over this transport. Read moreSource§fn poll_send(
future: Pin<&mut Self::SendFutureState>,
cx: &mut Context<'_>,
shared: &Self::Shared,
) -> Poll<Result<(), Option<Self::Error>>>
fn poll_send( future: Pin<&mut Self::SendFutureState>, cx: &mut Context<'_>, shared: &Self::Shared, ) -> Poll<Result<(), Option<Self::Error>>>
Polls a
SendFutureState
for completion with the shared part of the
transport. Read moreSource§fn begin_recv(
shared: &Self::Shared,
exclusive: &mut Self::Exclusive,
) -> Self::RecvFutureState
fn begin_recv( shared: &Self::Shared, exclusive: &mut Self::Exclusive, ) -> Self::RecvFutureState
Begins receiving a
RecvBuffer
over this transport. Read moreAuto 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