pub struct AsyncToSyncAdapter<A> { /* private fields */ }Expand description
Adapts an AsyncSource into a synchronous Source by running a Tokio runtime.
Implementations§
Source§impl<A: AsyncSource> AsyncToSyncAdapter<A>
impl<A: AsyncSource> AsyncToSyncAdapter<A>
Trait Implementations§
Source§impl<A: AsyncSource + 'static> Source for AsyncToSyncAdapter<A>
impl<A: AsyncSource + 'static> Source for AsyncToSyncAdapter<A>
Auto Trait Implementations§
impl<A> Freeze for AsyncToSyncAdapter<A>where
A: Freeze,
impl<A> RefUnwindSafe for AsyncToSyncAdapter<A>where
A: RefUnwindSafe,
impl<A> Send for AsyncToSyncAdapter<A>where
A: Send,
impl<A> Sync for AsyncToSyncAdapter<A>where
A: Sync,
impl<A> Unpin for AsyncToSyncAdapter<A>where
A: Unpin,
impl<A> UnsafeUnpin for AsyncToSyncAdapter<A>where
A: UnsafeUnpin,
impl<A> UnwindSafe for AsyncToSyncAdapter<A>where
A: UnwindSafe,
Blanket Implementations§
Source§impl<T> AsyncSource for Twhere
T: Source,
impl<T> AsyncSource for Twhere
T: Source,
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