# Struct alsa::ctl::ElemId [−] [src]

    pub struct ElemId(_);

snd_ctl_elem_id_t wrapper

## Methods

### `impl ElemId`
[src]

#### `fn get_name(&self) -> Result<&str>`

#### `fn get_device(&self) -> u32`

#### `fn get_subdevice(&self) -> u32`

#### `fn get_numid(&self) -> u32`

#### `fn get_index(&self) -> u32`

#### `fn get_interface(&self) -> ElemIface`

#### `fn set_device(&mut self, v: u32)`

#### `fn set_subdevice(&mut self, v: u32)`

#### `fn set_numid(&mut self, v: u32)`

#### `fn set_index(&mut self, v: u32)`

#### `fn set_interface(&mut self, v: ElemIface)`

#### `fn set_name(&mut self, v: &CStr)`

#### `fn new(iface: ElemIface) -> Self`

Creates a new ElemId.

To ensure safety (i e make sure we never have an invalid interface enum), we need to supply it to the "new" function.

## Trait Implementations

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

### `impl Clone for ElemId`
[src]

#### `fn clone(&self) -> Self`

Returns a copy of the value. Read more

#### `fn clone_from(&mut self, source: &Self)`
1.0.0

Performs copy-assignment from `source`. Read more

### `impl Eq for ElemId`
[src]

### `impl PartialEq for ElemId`
[src]

#### `fn eq(&self, a: &ElemId) -> bool`

This method tests for `self` and `other` values to be equal, and is used by `==`. Read more

#### `fn ne(&self, other: &Rhs) -> bool`
1.0.0

This method tests for `!=`.

### `impl Debug for ElemId`
[src]

#### `fn fmt(&self, f: &mut Formatter) -> Result`

Formats the value using the given formatter.

# 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`)