[][src]Struct node_replication::rwlock::WriteGuard

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

A write-guard that can be used to write to the underlying data structure. All reads will be blocked until this is dropped.

Trait Implementations

impl<T: ?Sized + Default + Sync, '_> Deref for WriteGuard<'_, T>[src]

This Deref trait allows a thread to use T from a WriteGuard. This allows us to dereference an immutable reference.

type Target = T

The resulting type after dereferencing.

impl<T: ?Sized + Default + Sync, '_> DerefMut for WriteGuard<'_, T>[src]

This DerefMut trait allow a thread to use T from a WriteGuard. This allows us to dereference a mutable reference.

impl<T: ?Sized + Default + Sync, '_> Drop for WriteGuard<'_, T>[src]

This Drop trait implements the unlock logic for a writer lock. Once the WriteGuard goes out of scope, the corresponding write lock is marked as released.

Auto Trait Implementations

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

impl<'a, T> Send for WriteGuard<'a, T>

impl<'a, T> Sync for WriteGuard<'a, T>

impl<'a, T> Unpin for WriteGuard<'a, T>

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