# qutex::WriteGuard - Rust
API documentation for the Rust `WriteGuard` struct in crate `qutex`.
Keywords: rust, rustlang, rust-lang, WriteGuard

# Struct qutex::WriteGuard [−] [src]

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

Allows read or write access to the data contained within a lock.

## Methods

### `impl<T> WriteGuard<T>`
[src]

#### `pub fn downgrade(guard: WriteGuard<T>) -> ReadGuard<T>`
[src]

Converts this `WriteGuard` into a `ReadGuard` and fulfills any other pending read requests.

#### `pub fn release(guard: WriteGuard<T>) -> QrwLock<T>`
[src]

Releases the lock held by this `WriteGuard` and returns the original `QrwLock`.

## Trait Implementations

### `impl<T: Debug> Debug for WriteGuard<T>`
[src]

#### `fn fmt(&self, __arg_0: &mut Formatter) -> Result`
[src]

Formats the value using the given formatter. Read more

### `impl<T> Deref for WriteGuard<T>`
[src]

#### `type Target = T`

The resulting type after dereferencing.

#### `fn deref(&self) -> &T`
[src]

Dereferences the value.

### `impl<T> DerefMut for WriteGuard<T>`
[src]

#### `fn deref_mut(&mut self) -> &mut T`
[src]

Mutably dereferences the value.

### `impl<T> Drop for WriteGuard<T>`
[src]

#### `fn drop(&mut self)`
[src]

Executes the destructor for this type. Read more

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)