[−][src]Struct alsa::seq::Seq
snd_seq_t wrapper
To access the functions ``event_input,
event_input_pendingand
set_input_buffer_size, you first have to obtain an instance of
Inputby calling
input(). Only one instance of
Inputmay exist at any time for a given
Seq`.
Methods
impl Seq
[src]
pub fn open(
name: Option<&CStr>,
dir: Option<Direction>,
nonblock: bool
) -> Result<Seq>
[src]
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.
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]
&self,
name: &CStr,
caps: PortCap,
t: PortType
) -> Result<i32>
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]
&self,
q: i32,
t: EventType,
value: i32,
e: Option<&mut Event>
) -> Result<()>
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
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,