pub struct BoxSyncFuture<T>(/* private fields */);Expand description
Wraps a !Sync boxed future so it can live inside a Sync container.
Safe because we only ever poll it through &mut self, which never
contends the lock.
Implementations§
Source§impl<T> BoxSyncFuture<T>
impl<T> BoxSyncFuture<T>
Trait Implementations§
Source§impl<T> Debug for BoxSyncFuture<T>
impl<T> Debug for BoxSyncFuture<T>
Auto Trait Implementations§
impl<T> !Freeze for BoxSyncFuture<T>
impl<T> RefUnwindSafe for BoxSyncFuture<T>
impl<T> Send for BoxSyncFuture<T>
impl<T> Sync for BoxSyncFuture<T>
impl<T> Unpin for BoxSyncFuture<T>
impl<T> UnsafeUnpin for BoxSyncFuture<T>
impl<T> UnwindSafe for BoxSyncFuture<T>
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