Trait alsa::poll::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§