# Struct alsa::seq::Seq [−] [src]

    pub struct Seq(_, _);

snd_seq_t wrapper

To access the functions ``event_input`, `event_input_pending` and `set_input_buffer_size`, you first have to obtain an instance of `Input` by calling `input()`. Only one instance of `Input` may exist at any time for a given `Seq`.

## Methods

### `impl Seq`
[src]

#### `fn open(
name: Option<&CStr>,
dir: Option<Direction>,
nonblock: bool
) -> Result<Seq>`

Opens the sequencer.

If name is None, "default" will be used. That's almost always what you usually want to use anyway.

#### `fn set_client_name(&self, name: &CStr) -> Result<()>`

#### `fn set_client_event_filter(&self, event_type: i32) -> Result<()>`

#### `fn set_client_pool_output(&self, size: u32) -> Result<()>`

#### `fn set_client_pool_input(&self, size: u32) -> Result<()>`

#### `fn set_client_pool_output_room(&self, size: u32) -> Result<()>`

#### `fn client_id(&self) -> Result<i32>`

#### `fn drain_output(&self) -> Result<i32>`

#### `fn get_any_client_info(&self, client: i32) -> Result<ClientInfo>`

#### `fn get_any_port_info(&self, a: Addr) -> Result<PortInfo>`

#### `fn create_port(&self, port: &PortInfo) -> Result<()>`

#### `fn create_simple_port(
&self,
name: &CStr,
caps: PortCap,
t: PortType
) -> Result<i32>`

#### `fn set_port_info(&self, port: i32, info: &mut PortInfo) -> Result<()>`

#### `fn delete_port(&self, port: i32) -> Result<()>`

#### `fn subscribe_port(&self, info: &PortSubscribe) -> Result<()>`

#### `fn unsubscribe_port(&self, sender: Addr, dest: Addr) -> Result<()>`

#### `fn control_queue(
&self,
q: i32,
t: EventType,
value: i32,
e: Option<&mut Event>
) -> Result<()>`

#### `fn event_output(&self, e: &mut Event) -> Result<u32>`

#### `fn event_output_buffer(&self, e: &mut Event) -> Result<u32>`

#### `fn event_output_direct(&self, e: &mut Event) -> Result<u32>`

#### `fn get_queue_tempo(&self, q: i32) -> Result<QueueTempo>`

#### `fn set_queue_tempo(&self, q: i32, value: &QueueTempo) -> Result<()>`

#### `fn free_queue(&self, q: i32) -> Result<()>`

#### `fn alloc_queue(&self) -> Result<i32>`

#### `fn alloc_named_queue(&self, n: &CStr) -> Result<i32>`

#### `fn input<'a>(&'a self) -> Input<'a>`

Call this function to obtain an instance of `Input` to access the functions `event_input`, `event_input_pending` and `set_input_buffer_size`. See the documentation of `Input` for details.

## Trait Implementations

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

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

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

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

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