Struct tokio::util::sync_wrapper::SyncWrapper
source · pub(crate) struct SyncWrapper<T> {
value: T,
}
Fields§
§value: T
Implementations§
source§impl<T> SyncWrapper<T>
impl<T> SyncWrapper<T>
pub(crate) fn new(value: T) -> Self
pub(crate) fn into_inner(self) -> T
Trait Implementations§
impl<T: Send> Send for SyncWrapper<T>
impl<T> Sync for SyncWrapper<T>
Auto Trait Implementations§
impl<T> Freeze for SyncWrapper<T>where
T: Freeze,
impl<T> RefUnwindSafe for SyncWrapper<T>where
T: RefUnwindSafe,
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