Struct alsa::seq::Seq

source ·
pub struct Seq(/* private fields */);
Expand description

snd_seq_t wrapper

To access the functions event_input, event_input_pending and set_input_buffer_size, you first have to obtain an instance of Input by calling input(). Only one instance of Input may exist at any time for a given Seq.

Implementations§

source§

impl Seq

source

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

Opens the sequencer.

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

pub fn event_output(&self, e: &mut Event<'_>) -> Result<u32>

source

pub fn event_output_buffer(&self, e: &mut Event<'_>) -> Result<u32>

source

pub fn event_output_direct(&self, e: &mut Event<'_>) -> Result<u32>

source

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

source

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

source

pub fn get_queue_status(&self, q: i32) -> Result<QueueStatus>

source

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

source

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

source

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

source

pub fn sync_output_queue(&self) -> Result<()>

source

pub fn drop_output(&self) -> Result<()>

source

pub fn input(&self) -> Input<'_>

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.

source

pub fn remove_events(&self, condition: RemoveEvents) -> Result<()>

Trait Implementations§

source§

impl Drop for Seq

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl Send for Seq

Auto Trait Implementations§

§

impl !Freeze for Seq

§

impl !RefUnwindSafe for Seq

§

impl !Sync for Seq

§

impl Unpin for Seq

§

impl UnwindSafe for Seq

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.