Struct try_lock::Locked [] [src]

pub struct Locked<'a, T: 'a> { /* fields omitted */ }

A locked value acquired from a TryLock.

The type represents an exclusive view at the underlying value. The lock is released when this type is dropped.

This type derefs to the underlying value.

Trait Implementations

impl<'a, T> Deref for Locked<'a, T>
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl<'a, T> DerefMut for Locked<'a, T>
[src]

[src]

Mutably dereferences the value.

impl<'a, T> Drop for Locked<'a, T>
[src]

[src]

Executes the destructor for this type. Read more

impl<'a, T: Debug> Debug for Locked<'a, T>
[src]

[src]

Formats the value using the given formatter. Read more