Struct spinlock::SpinlockGuard
[−]
[src]
pub struct SpinlockGuard<'a, T: 'a> { /* fields omitted */ }
A guard to which the protected data can be accessed
When the guard falls out of scope it will release the lock.
Trait Implementations
impl<'a, T> Deref for SpinlockGuard<'a, T>
[src]
type Target = T
The resulting type after dereferencing
fn deref<'b>(&'b self) -> &'b T
The method called to dereference a value
impl<'a, T> DerefMut for SpinlockGuard<'a, T>
[src]
fn deref_mut<'b>(&'b mut self) -> &'b mut T
The method called to mutably dereference a value
impl<'a, T> Drop for SpinlockGuard<'a, T>
[src]
fn drop(&mut self)
The dropping of the SpinlockGuard will release the lock it was created from.