Struct uplock::RwLock [−][src]
pub struct RwLock<T> { /* fields omitted */ }
Implementations
A futures-aware version of std::sync::RwLock
.
Return a read lock synchronously if possible, otherwise None
.
pub fn read(&self) -> RwLockReadFuture<T>ⓘNotable traits for RwLockReadFuture<T>impl<T> Future for RwLockReadFuture<T> type Output = RwLockReadGuard<T>;
pub fn read(&self) -> RwLockReadFuture<T>ⓘNotable traits for RwLockReadFuture<T>impl<T> Future for RwLockReadFuture<T> type Output = RwLockReadGuard<T>;
Notable traits for RwLockReadFuture<T>
impl<T> Future for RwLockReadFuture<T> type Output = RwLockReadGuard<T>;
Return a read lock asynchronously.
Return a write lock synchronously if possible, otherwise None
.
pub fn write(&self) -> RwLockWriteFuture<T>ⓘNotable traits for RwLockWriteFuture<T>impl<T> Future for RwLockWriteFuture<T> type Output = RwLockWriteGuard<T>;
pub fn write(&self) -> RwLockWriteFuture<T>ⓘNotable traits for RwLockWriteFuture<T>impl<T> Future for RwLockWriteFuture<T> type Output = RwLockWriteGuard<T>;
Notable traits for RwLockWriteFuture<T>
impl<T> Future for RwLockWriteFuture<T> type Output = RwLockWriteGuard<T>;
Return a write lock asynchronously.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for RwLock<T>
impl<T> UnwindSafe for RwLock<T>
Blanket Implementations
Mutably borrows from an owned value. Read more