alsa::direct::pcm

Trait MmapDir

Source
pub trait MmapDir: Debug {
    const DIR: Direction;

    // Required method
    fn avail(
        hwptr: Frames,
        applptr: Frames,
        buffersize: Frames,
        boundary: Frames,
    ) -> Frames;
}
Expand description

Dummy trait for better generics

Required Associated Constants§

Required Methods§

Source

fn avail( hwptr: Frames, applptr: Frames, buffersize: Frames, boundary: Frames, ) -> Frames

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl MmapDir for Capture

Source§

const DIR: Direction = Direction::Capture

Source§

impl MmapDir for Playback

Source§

const DIR: Direction = Direction::Playback