Struct qutex::Qutex [] [src]

pub struct Qutex<T> { /* fields omitted */ }

A lock-free-queue-backed exclusive data lock.

Methods

impl<T> Qutex<T>
[src]

[src]

Creates and returns a new Qutex.

[src]

Returns a new FutureGuard which can be used as a future and will resolve into a Guard.

[src]

Pushes a lock request onto the queue.

[src]

Returns a mutable reference to the inner Vec if there are currently no other copies of this Qutex.

Since this call borrows the inner lock mutably, no actual locking needs to take place---the mutable borrow statically guarantees no locks exist.

[src]

Returns a reference to the inner value.

[src]

Returns a mutable reference to the inner value.

[src]

Pops the next lock request in the queue if this (the caller's) lock is unlocked.

[src]

Unlocks this (the caller's) lock and wakes up the next task in the queue.

Trait Implementations

impl<T: Debug> Debug for Qutex<T>
[src]

[src]

Formats the value using the given formatter.

impl<T> From<T> for Qutex<T>
[src]

[src]

Performs the conversion.

impl<T> Clone for Qutex<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more