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

pub struct Seq(_, _);

snd_seq_t wrapper

To access the functions ``event_input, event_input_pendingandset_input_buffer_size, you first have to obtain an instance of Inputby callinginput(). Only one instance of Inputmay exist at any time for a givenSeq`.

Methods

impl Seq[src]

pub fn open(
    name: Option<&CStr>,
    dir: Option<Direction>,
    nonblock: bool
) -> Result<Seq>
[src]

Opens the sequencer.

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

pub fn set_client_name(&self, name: &CStr) -> Result<()>[src]

pub fn set_client_event_filter(&self, event_type: i32) -> Result<()>[src]

pub fn set_client_pool_output(&self, size: u32) -> Result<()>[src]

pub fn set_client_pool_input(&self, size: u32) -> Result<()>[src]

pub fn set_client_pool_output_room(&self, size: u32) -> Result<()>[src]

pub fn client_id(&self) -> Result<i32>[src]

pub fn drain_output(&self) -> Result<i32>[src]

pub fn get_any_client_info(&self, client: i32) -> Result<ClientInfo>[src]

pub fn get_any_port_info(&self, a: Addr) -> Result<PortInfo>[src]

pub fn create_port(&self, port: &PortInfo) -> Result<()>[src]

pub fn create_simple_port(
    &self,
    name: &CStr,
    caps: PortCap,
    t: PortType
) -> Result<i32>
[src]

pub fn set_port_info(&self, port: i32, info: &mut PortInfo) -> Result<()>[src]

pub fn delete_port(&self, port: i32) -> Result<()>[src]

pub fn subscribe_port(&self, info: &PortSubscribe) -> Result<()>[src]

pub fn unsubscribe_port(&self, sender: Addr, dest: Addr) -> Result<()>[src]

pub fn control_queue(
    &self,
    q: i32,
    t: EventType,
    value: i32,
    e: Option<&mut Event>
) -> Result<()>
[src]

pub fn event_output(&self, e: &mut Event) -> Result<u32>[src]

pub fn event_output_buffer(&self, e: &mut Event) -> Result<u32>[src]

pub fn event_output_direct(&self, e: &mut Event) -> Result<u32>[src]

pub fn get_queue_tempo(&self, q: i32) -> Result<QueueTempo>[src]

pub fn set_queue_tempo(&self, q: i32, value: &QueueTempo) -> Result<()>[src]

pub fn free_queue(&self, q: i32) -> Result<()>[src]

pub fn alloc_queue(&self) -> Result<i32>[src]

pub fn alloc_named_queue(&self, n: &CStr) -> Result<i32>[src]

pub fn sync_output_queue(&self) -> Result<()>[src]

pub fn input<'a>(&'a self) -> Input<'a>[src]

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 Drop for Seq[src]

impl Send for Seq[src]

Auto Trait Implementations

impl !Sync for Seq

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]