# Trait alsa::poll::PollDescriptors [−] [src]

    pub trait PollDescriptors {
        fn count(&self) -> usize;
        fn fill(&self, _: &mut [pollfd]) -> Result<usize>;
        fn revents(&self, _: &[pollfd]) -> Result<PollFlags>;

        fn get(&self) -> Result<Vec<pollfd>> { ... }
    }

## Required Methods

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

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

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

## Provided Methods

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

Wrapper around count and fill - returns an array of pollfds

## Implementors

- `impl PollDescriptors for Ctl`
- `impl PollDescriptors for HCtl`
- `impl PollDescriptors for PCM`
- `impl PollDescriptors for Rawmidi`
- `impl PollDescriptors for pollfd`
- `impl PollDescriptors for Mixer`
- `impl<'a> PollDescriptors for (&'a Seq, Option<Direction>)`

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