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
impl Seq
sourcepub fn open(
name: Option<&CStr>,
dir: Option<Direction>,
nonblock: bool,
) -> Result<Seq>
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.
pub fn set_client_name(&self, name: &CStr) -> Result<()>
pub fn set_client_event_filter(&self, event_type: i32) -> Result<()>
pub fn set_client_pool_output(&self, size: u32) -> Result<()>
pub fn set_client_pool_input(&self, size: u32) -> Result<()>
pub fn set_client_pool_output_room(&self, size: u32) -> Result<()>
pub fn client_id(&self) -> Result<i32>
pub fn drain_output(&self) -> Result<i32>
pub fn get_any_client_info(&self, client: i32) -> Result<ClientInfo>
pub fn get_any_port_info(&self, a: Addr) -> Result<PortInfo>
pub fn create_port(&self, port: &PortInfo) -> Result<()>
pub fn create_simple_port( &self, name: &CStr, caps: PortCap, t: PortType, ) -> Result<i32>
pub fn set_port_info(&self, port: i32, info: &mut PortInfo) -> Result<()>
pub fn delete_port(&self, port: i32) -> Result<()>
pub fn subscribe_port(&self, info: &PortSubscribe) -> Result<()>
pub fn unsubscribe_port(&self, sender: Addr, dest: Addr) -> Result<()>
pub fn control_queue( &self, q: i32, t: EventType, value: i32, e: Option<&mut Event<'_>>, ) -> Result<()>
pub fn event_output(&self, e: &mut Event<'_>) -> Result<u32>
pub fn event_output_buffer(&self, e: &mut Event<'_>) -> Result<u32>
pub fn event_output_direct(&self, e: &mut Event<'_>) -> Result<u32>
pub fn get_queue_tempo(&self, q: i32) -> Result<QueueTempo>
pub fn set_queue_tempo(&self, q: i32, value: &QueueTempo) -> Result<()>
pub fn get_queue_status(&self, q: i32) -> Result<QueueStatus>
pub fn free_queue(&self, q: i32) -> Result<()>
pub fn alloc_queue(&self) -> Result<i32>
pub fn alloc_named_queue(&self, n: &CStr) -> Result<i32>
pub fn sync_output_queue(&self) -> Result<()>
pub fn drop_output(&self) -> Result<()>
sourcepub fn input(&self) -> Input<'_>
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.
pub fn remove_events(&self, condition: RemoveEvents) -> Result<()>
Trait Implementations§
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more