[−][src]Struct node_replication::rwlock::ReadGuard
A read-guard that can be used to read the underlying data structure. Writes on the data structure will be blocked as long as one of these is lying around.
Trait Implementations
impl<T: ?Sized + Default + Sync, '_> Deref for ReadGuard<'_, T>[src]
This Deref trait allows a thread to use T from a ReadGuard.
ReadGuard can only be dereferenced into an immutable reference.
impl<T: ?Sized + Default + Sync, '_> Drop for ReadGuard<'_, T>[src]
This Drop trait implements the unlock logic for a reader lock. Once the ReadGuard
goes out of scope, the corresponding read lock is marked as released.
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for ReadGuard<'a, T>
impl<'a, T> Send for ReadGuard<'a, T>
impl<'a, T> Sync for ReadGuard<'a, T>
impl<'a, T> Unpin for ReadGuard<'a, T>
impl<'a, T> !UnwindSafe for ReadGuard<'a, T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,