pub struct SyncWrapper<T>(/* private fields */);
Expand description
Inspired by https://internals.rust-lang.org/t/what-shall-sync-mean-across-an-await/12020/2.
Implementations§
Source§impl<T> SyncWrapper<T>
impl<T> SyncWrapper<T>
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Consume this object to access the inner item.
Trait Implementations§
Source§impl<T: Debug> Debug for SyncWrapper<T>
impl<T: Debug> Debug for SyncWrapper<T>
impl<T> Sync for SyncWrapper<T>where
T: Send,
Auto Trait Implementations§
impl<T> Freeze for SyncWrapper<T>where
T: Freeze,
impl<T> RefUnwindSafe for SyncWrapper<T>where
T: RefUnwindSafe,
impl<T> Send for SyncWrapper<T>where
T: Send,
impl<T> Unpin for SyncWrapper<T>where
T: Unpin,
impl<T> UnwindSafe for SyncWrapper<T>where
T: 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