pub struct AsyncOnce<Value, NextAccepts> { /* private fields */ }Expand description
AsyncAccepts<T> implementation that forwards only once.
Implementations§
Trait Implementations§
Source§impl<Value, NextAccepts> AsyncAccepts<Value> for AsyncOnce<Value, NextAccepts>where
NextAccepts: AsyncAccepts<Value>,
impl<Value, NextAccepts> AsyncAccepts<Value> for AsyncOnce<Value, NextAccepts>where
NextAccepts: AsyncAccepts<Value>,
fn accept_async<'a>(&'a self, value: Value) -> impl Future<Output = ()> + 'awhere
Value: 'a,
Auto Trait Implementations§
impl<Value, NextAccepts> !Freeze for AsyncOnce<Value, NextAccepts>
impl<Value, NextAccepts> RefUnwindSafe for AsyncOnce<Value, NextAccepts>where
NextAccepts: RefUnwindSafe,
Value: RefUnwindSafe,
impl<Value, NextAccepts> Send for AsyncOnce<Value, NextAccepts>
impl<Value, NextAccepts> Sync for AsyncOnce<Value, NextAccepts>
impl<Value, NextAccepts> Unpin for AsyncOnce<Value, NextAccepts>
impl<Value, NextAccepts> UnwindSafe for AsyncOnce<Value, NextAccepts>where
NextAccepts: UnwindSafe,
Value: 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