[][src]Struct bastion_qutex::ReadGuard

pub struct ReadGuard<T> { /* fields omitted */ }

Allows read-only access to the data contained within a lock.

Methods

impl<T> ReadGuard<T>[src]

pub fn upgrade(guard: ReadGuard<T>) -> FutureUpgrade<T>[src]

pub fn release(guard: ReadGuard<T>) -> QrwLock<T>[src]

Releases the lock held by this ReadGuard and returns the original QrwLock.

Trait Implementations

impl<T> Drop for ReadGuard<T>[src]

impl<T: Debug> Debug for ReadGuard<T>[src]

impl<T> Deref for ReadGuard<T>[src]

type Target = T

The resulting type after dereferencing.

Auto Trait Implementations

impl<T> Send for ReadGuard<T> where
    T: Send

impl<T> Sync for ReadGuard<T> where
    T: Send

impl<T> Unpin for ReadGuard<T>

impl<T> !UnwindSafe for ReadGuard<T>

impl<T> !RefUnwindSafe for ReadGuard<T>

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]