Struct aldrin_core::transport::MapError
source · pub struct MapError<T, F> { /* private fields */ }Trait Implementations§
source§impl<T, F, E> AsyncTransport for MapError<T, F>where
T: AsyncTransport,
F: FnMut(T::Error) -> E,
impl<T, F, E> AsyncTransport for MapError<T, F>where T: AsyncTransport, F: FnMut(T::Error) -> E,
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, F> Unpin for MapError<T, F>where __Origin<'__pin, T, F>: Unpin,
Auto Trait Implementations§
impl<T, F> RefUnwindSafe for MapError<T, F>where F: RefUnwindSafe, T: RefUnwindSafe,
impl<T, F> Send for MapError<T, F>where F: Send, T: Send,
impl<T, F> Sync for MapError<T, F>where F: Sync, T: Sync,
impl<T, F> UnwindSafe for MapError<T, F>where F: UnwindSafe, 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: Message) -> Send<'_, Self> ⓘwhere Self: Unpin,
fn flush(&mut self) -> Flush<'_, Self> ⓘwhere Self: Unpin,
fn send_and_flush(&mut self, msg: 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: 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>where Self: Sized, F: FnMut(Self::Error) -> E,
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