alsa::poll

Trait Descriptors

Source
pub trait Descriptors {
    // Required methods
    fn count(&self) -> usize;
    fn fill(&self, _: &mut [pollfd]) -> Result<usize>;
    fn revents(&self, _: &[pollfd]) -> Result<Flags>;

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

Required Methods§

Source

fn count(&self) -> usize

Source

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

Source

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

Provided Methods§

Source

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

Wrapper around count and fill - returns an array of pollfds

Implementations on Foreign Types§

Source§

impl<'a> Descriptors for (&'a Seq, Option<Direction>)

Source§

fn count(&self) -> usize

Source§

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

Source§

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

Implementors§