pub struct ReadGuard<'a, T> where
T: Clone, { /* private fields */ }
Expand description
Provides a read guard over inner value. The inner data can be derefed. ReadGuard
only
returns immutable data types.
Implementations
sourceimpl<'a, T> ReadGuard<'a, T> where
T: Clone,
impl<'a, T> ReadGuard<'a, T> where
T: Clone,
pub fn from_baseguard(
guard: BaseGuard<'a, T>,
context: &'a RluContext<T>
) -> Self
pub fn from_guard(mutex: MutexGuard<'a, T>, context: &'a RluContext<T>) -> Self
pub fn from_copied(copied: T, context: &'a RluContext<T>) -> Self
Trait Implementations
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for ReadGuard<'a, T> where
T: RefUnwindSafe,
impl<'a, T> !Send for ReadGuard<'a, T>
impl<'a, T> Sync for ReadGuard<'a, T> where
T: Send + Sync,
impl<'a, T> Unpin for ReadGuard<'a, T> where
T: Unpin,
impl<'a, T> UnwindSafe for ReadGuard<'a, T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more