[][src]Struct holochain_locksmith::RwLockReadGuard

pub struct RwLockReadGuard<'a, T: ?Sized> { /* fields omitted */ }

Methods

impl<'a, T: ?Sized> HcRwLockReadGuard<'a, T>[src]

pub fn new(inner: RwLockReadGuard<'a, T>) -> Self[src]

pub fn annotate<S: Into<String>>(self, annotation: S) -> Self[src]

Add some context which will output in the case that this guard lives to be an immortal

pub fn use_fair_unlocking(self) -> Self[src]

Declare that this mutex should be unlocked fairly when it is dropped, if it hasn't already been unlocked some other way

pub fn unlock_fair(self)[src]

Explicitly consume and unlock this mutex fairly, regardless of what kind of unlocking was specified at initialization

Trait Implementations

impl<'a, T: ?Sized> Borrow<T> for HcRwLockReadGuard<'a, T>[src]

impl<'a, T: ?Sized> Deref for HcRwLockReadGuard<'a, T>[src]

type Target = T

The resulting type after dereferencing.

impl<'a, T: ?Sized> Drop for HcRwLockReadGuard<'a, T>[src]

Auto Trait Implementations

impl<'a, T> !RefUnwindSafe for HcRwLockReadGuard<'a, T>

impl<'a, T> !Send for HcRwLockReadGuard<'a, T>

impl<'a, T: ?Sized> Sync for HcRwLockReadGuard<'a, T> where
    T: Sync

impl<'a, T: ?Sized> Unpin for HcRwLockReadGuard<'a, T>

impl<'a, T> !UnwindSafe for HcRwLockReadGuard<'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.