pub struct PortInfo(/* private fields */);Expand description
snd_seq_port_info_t wrapper
Implementations§
Source§impl PortInfo
impl PortInfo
pub fn get_client(&self) -> i32
pub fn get_port(&self) -> i32
pub fn get_name(&self) -> Result<&str>
pub fn set_name(&mut self, name: &CStr)
pub fn get_capability(&self) -> PortCap
pub fn get_type(&self) -> PortType
pub fn set_capability(&self, c: PortCap)
pub fn set_type(&self, c: PortType)
pub fn get_midi_channels(&self) -> i32
pub fn get_midi_voices(&self) -> i32
pub fn get_synth_voices(&self) -> i32
pub fn get_read_use(&self) -> i32
pub fn get_write_use(&self) -> i32
pub fn get_port_specified(&self) -> bool
pub fn get_timestamping(&self) -> bool
pub fn get_timestamp_real(&self) -> bool
pub fn get_timestamp_queue(&self) -> i32
pub fn set_midi_channels(&self, value: i32)
pub fn set_midi_voices(&self, value: i32)
pub fn set_synth_voices(&self, value: i32)
pub fn set_port_specified(&self, value: bool)
pub fn set_timestamping(&self, value: bool)
pub fn set_timestamp_real(&self, value: bool)
pub fn set_timestamp_queue(&self, value: i32)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PortInfo
impl RefUnwindSafe for PortInfo
impl !Sync for PortInfo
impl Unpin for PortInfo
impl UnsafeUnpin for PortInfo
impl UnwindSafe for PortInfo
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