pub struct WriteGuard<V> { /* private fields */ }Expand description
Allows access to the data contained within just like a mutex guard.
Implementations§
Source§impl<V> WriteGuard<V>
impl<V> WriteGuard<V>
Sourcepub fn release_event(guard: &WriteGuard<V>) -> Option<&Event>
pub fn release_event(guard: &WriteGuard<V>) -> Option<&Event>
Returns a reference to the event previously set using
create_release_event on the FutureGuard which preceded this
WriteGuard. The event can be manually ‘triggered’ by calling
...set_complete()... or used normally (as a wait event) by
subsequent commands. If the event is not manually completed it will be
automatically set complete when this WriteGuard is dropped.
Sourcepub fn release(guard: WriteGuard<V>) -> OrderLock<V>
pub fn release(guard: WriteGuard<V>) -> OrderLock<V>
Triggers the release event and releases the lock held by this WriteGuard
before returning the original OrderLock.
Trait Implementations§
Source§impl<V: Debug> Debug for WriteGuard<V>
impl<V: Debug> Debug for WriteGuard<V>
Source§impl<V> Deref for WriteGuard<V>
impl<V> Deref for WriteGuard<V>
Source§impl<V> DerefMut for WriteGuard<V>
impl<V> DerefMut for WriteGuard<V>
Source§impl<V> Drop for WriteGuard<V>
impl<V> Drop for WriteGuard<V>
Source§impl<V> OrderGuard<V> for WriteGuard<V>
impl<V> OrderGuard<V> for WriteGuard<V>
Auto Trait Implementations§
impl<V> Freeze for WriteGuard<V>
impl<V> !RefUnwindSafe for WriteGuard<V>
impl<V> Send for WriteGuard<V>where
V: Send,
impl<V> Sync for WriteGuard<V>where
V: Send,
impl<V> Unpin for WriteGuard<V>
impl<V> !UnwindSafe for WriteGuard<V>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more