# Struct alsa::Ctl [−] [src]

    pub struct Ctl(_);

snd_ctl_t wrapper

## Methods

### `impl Ctl`
[src]

#### `fn open(c: &CStr, nonblock: bool) -> Result<Ctl>`

Open does not support async mode (it's not very Rustic anyway)

#### `fn from_card(c: &Card, nonblock: bool) -> Result<Ctl>`

#### `fn card_info(&self) -> Result<CardInfo>`

#### `fn wait(&self, timeout_ms: Option<u32>) -> Result<bool>`

#### `fn get_db_range(&self, id: &ElemId) -> Result<(MilliBel, MilliBel)>`

#### `fn convert_to_db(&self, id: &ElemId, volume: i64) -> Result<MilliBel>`

#### `fn convert_from_db(&self, id: &ElemId, mb: MilliBel, dir: Round) -> Result<i64>`

## Trait Implementations

### `impl Send for Ctl`
[src]

### `impl Drop for Ctl`
[src]

#### `fn drop(&mut self)`

A method called when the value goes out of scope. Read more

### `impl PollDescriptors for Ctl`
[src]

#### `fn count(&self) -> usize`

#### `fn fill(&self, p: &mut [pollfd]) -> Result<usize>`

#### `fn revents(&self, p: &[pollfd]) -> Result<PollFlags>`

#### `fn get(&self) -> Result<Vec<pollfd>>`

Wrapper around count and fill - returns an array of pollfds

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand 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`)