#[repr(transparent)]pub struct ArcWrapped<T>(*const Mutex<T>);
Expand description
Similar to Wrapped, except thread-safe.
Tuple Fields§
§0: *const Mutex<T>
Implementations§
Trait Implementations§
Source§impl<T> Clone for ArcWrapped<T>
impl<T> Clone for ArcWrapped<T>
Source§impl<T: Clone> CloneOwned for ArcWrapped<T>
ToOwned won’t work here
impl<T: Clone> CloneOwned for ArcWrapped<T>
ToOwned won’t work here
Auto Trait Implementations§
impl<T> Freeze for ArcWrapped<T>
impl<T> RefUnwindSafe for ArcWrapped<T>
impl<T> !Send for ArcWrapped<T>
impl<T> !Sync for ArcWrapped<T>
impl<T> Unpin for ArcWrapped<T>
impl<T> UnwindSafe for ArcWrapped<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