pub struct RefSync<T>{ /* private fields */ }Expand description
An acquired thread-local instance of a linked object of type T,
implementing Deref<Target = T>.
For details, see InstancePerThreadSync<T> which is the type used
to create instances of RefSync<T>.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for RefSync<T>
impl<T> !RefUnwindSafe for RefSync<T>
impl<T> Send for RefSync<T>
impl<T> Sync for RefSync<T>
impl<T> Unpin for RefSync<T>
impl<T> !UnwindSafe for RefSync<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