pub struct Buffered<T> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<T: AsyncTransport> AsyncTransport for Buffered<T>
impl<T: AsyncTransport> AsyncTransport for Buffered<T>
Source§type Error = <T as AsyncTransport>::Error
type Error = <T as AsyncTransport>::Error
Error type when sending or receiving messages.
Source§fn receive_poll(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<Message, Self::Error>>
fn receive_poll( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<Message, Self::Error>>
Attempts to receive the next message.
Source§fn send_poll_ready(
self: Pin<&mut Self>,
_cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>
fn send_poll_ready( self: Pin<&mut Self>, _cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>
Prepares the transport for sending a message. Read more
impl<'__pin, T> Unpin for Buffered<T>where
PinnedFieldsOf<__Origin<'__pin, T>>: Unpin,
Auto Trait Implementations§
impl<T> Freeze for Buffered<T>where
T: Freeze,
impl<T> RefUnwindSafe for Buffered<T>where
T: RefUnwindSafe,
impl<T> Send for Buffered<T>where
T: Send,
impl<T> Sync for Buffered<T>where
T: Sync,
impl<T> UnwindSafe for Buffered<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> AsyncTransportExt for Twhere
T: AsyncTransport,
impl<T> AsyncTransportExt for Twhere
T: AsyncTransport,
fn receive(&mut self) -> Receive<'_, Self> ⓘwhere
Self: Unpin,
fn send(&mut self, msg: impl Into<Message>) -> Send<'_, Self> ⓘwhere
Self: Unpin,
fn flush(&mut self) -> Flush<'_, Self> ⓘwhere
Self: Unpin,
fn send_and_flush(&mut self, msg: impl Into<Message>) -> SendFlush<'_, Self> ⓘwhere
Self: Unpin,
fn receive_poll_unpin(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<Message, Self::Error>>where
Self: Unpin,
fn send_poll_ready_unpin(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>where
Self: Unpin,
fn send_start_unpin(
&mut self,
msg: impl Into<Message>,
) -> Result<(), Self::Error>where
Self: Unpin,
fn send_poll_flush_unpin(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>where
Self: Unpin,
fn map_err<F, E>(self, f: F) -> MapError<Self, F>
fn boxed<'a>(self) -> BoxedTransport<'a, Self::Error>
fn buffered(self) -> Buffered<Self>where
Self: Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more