Struct tokio_sync::lock::Lock [−][src]
pub struct Lock<T> { /* fields omitted */ }An asynchronous mutual exclusion primitive useful for protecting shared data
Each mutex has a type parameter (T) which represents the data that it is protecting. The data
can only be accessed through the RAII guards returned from poll_lock, which guarantees that
the data is only ever accessed when the mutex is locked.
Implementations
impl<T> Lock<T>[src]
impl<T> Lock<T>[src]Trait Implementations
impl<T> Clone for Lock<T>[src]
impl<T> Clone for Lock<T>[src]fn clone(&self) -> Self[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<T> Send for Lock<T> where
T: Send, [src]
T: Send,
impl<T> Sync for Lock<T> where
T: Send, [src]
T: Send,