Struct sync::RwLock[][src]

pub struct RwLock<T: ?Sized, Lock> { /* fields omitted */ }

Mutual exclusionary primitive

Methods

impl<T, Lock: Lock> RwLock<T, Lock>
[src]

impl<T: ?Sized, Lock: Lock> RwLock<T, Lock>
[src]

Take a reference to the guarded value, blocking if another thread is already holding an exclusive reference.

Take an exclusive reference to the guarded value, blocking if another thread is already holding a reference.

Take a reference to the guarded value, returning None if another thread is already holding an exclusive reference.

Take an exclusive reference to the guarded value, returning None if another thread is already holding a reference.

Auto Trait Implementations

impl<T: ?Sized, Lock> Send for RwLock<T, Lock> where
    Lock: Send,
    T: Send

impl<T, Lock> !Sync for RwLock<T, Lock>