[][src]Struct node_replication::rwlock::ReadGuard

pub struct ReadGuard<'a, T: ?Sized + Default + Sync + 'a> { /* fields omitted */ }

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.

type Target = T

The resulting type after dereferencing.

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.