pub struct RoArc<T>(/* private fields */);Expand description
A reference-counting pointer with read-only capabilities.
This type can be created from an existing RwArc using its RwArc::clone_ro method. See
the type and method documentation for more details.
Implementations§
Source§impl<T> RoArc<T>
impl<T> RoArc<T>
Sourcepub exec fn read(&self) -> RwLockReadGuard<'_, T, PreemptDisabled>
pub exec fn read(&self) -> RwLockReadGuard<'_, T, PreemptDisabled>
Acquires the read lock for immutable access.
Auto Trait Implementations§
impl<T> Freeze for RoArc<T>
impl<T> !RefUnwindSafe for RoArc<T>
impl<T> Send for RoArc<T>
impl<T> Sync for RoArc<T>
impl<T> Unpin for RoArc<T>
impl<T> !UnwindSafe for RoArc<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