Struct distant_net::common::MappedListener
source · pub struct MappedListener<L, F, T, U>where
L: Listener<Output = T>,
F: FnMut(T) -> U + Send + Sync,{ /* private fields */ }Expand description
Implementations§
Trait Implementations§
source§impl<L, F, T, U> Listener for MappedListener<L, F, T, U>where
L: Listener<Output = T>,
F: FnMut(T) -> U + Send + Sync,
impl<L, F, T, U> Listener for MappedListener<L, F, T, U>where L: Listener<Output = T>, F: FnMut(T) -> U + Send + Sync,
source§fn accept<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Self::Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn accept<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<Self::Output>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Waits for the next fully-initialized transport for an incoming stream to be available, returning an error if no longer accepting new connections
type Output = U
Auto Trait Implementations§
impl<L, F, T, U> RefUnwindSafe for MappedListener<L, F, T, U>where F: RefUnwindSafe, L: RefUnwindSafe,
impl<L, F, T, U> Send for MappedListener<L, F, T, U>
impl<L, F, T, U> Sync for MappedListener<L, F, T, U>
impl<L, F, T, U> Unpin for MappedListener<L, F, T, U>where F: Unpin, L: Unpin,
impl<L, F, T, U> UnwindSafe for MappedListener<L, F, T, U>where F: UnwindSafe, L: UnwindSafe,
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