Struct rculock::RcuLock [] [src]

pub struct RcuLock<T: Clone> { /* fields omitted */ }

Methods

impl<T: Clone> RcuLock<T>
[src]

Create a new RcuLock.

Acquire a read handle to the RcuLock. This operation never blocks.

Acquire an exclusive write handle to the RcuLock, protected by an RcuGuard. This operation blocks if another RcuGuard is currently alive, i.e. the RcuLock has already handed one out to another writer.

Clones the data protected by the RcuLock, which can be expensive.

Trait Implementations

impl<T: Debug + Clone> Debug for RcuLock<T>
[src]

Formats the value using the given formatter.