pub struct Starc<T: ?Sized> { /* private fields */ }
Expand description
Single-threaded Arc
.
Wrapper for Arc
that allows you to Send
it even if T: !Sync
.
Yet internal data cannot be accessed outside of the thread where it was created.
Implementations§
Trait Implementations§
impl<T: ?Sized> Send for Starc<T>
impl<T: ?Sized> Sync for Starc<T>
Auto Trait Implementations§
impl<T> Freeze for Starc<T>where
T: ?Sized,
impl<T> RefUnwindSafe for Starc<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Unpin for Starc<T>where
T: ?Sized,
impl<T> UnwindSafe for Starc<T>where
T: RefUnwindSafe + ?Sized,
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