pub struct ResArc<T>(/* private fields */);
Expand description
A helper type to easily manage shared resources.
It provides methods to lazily initialize the resource of the current thread, or to share the resource with other threads.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for ResArc<T>
impl<T> !RefUnwindSafe for ResArc<T>
impl<T> Send for ResArc<T>
impl<T> Sync for ResArc<T>
impl<T> Unpin for ResArc<T>
impl<T> UnwindSafe for ResArc<T>where
T: RefUnwindSafe,
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