Struct alsa::seq::PortInfo

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

Implementations§

source§

impl PortInfo

source

pub fn empty() -> Result<Self>

Creates a new PortInfo with all fields set to zero.

source

pub fn get_client(&self) -> i32

source

pub fn get_port(&self) -> i32

source

pub fn get_name(&self) -> Result<&str>

source

pub fn set_name(&mut self, name: &CStr)

source

pub fn get_capability(&self) -> PortCap

source

pub fn get_type(&self) -> PortType

source

pub fn set_capability(&self, c: PortCap)

source

pub fn set_type(&self, c: PortType)

source

pub fn addr(&self) -> Addr

Returns an Addr containing this PortInfo’s client and port id.

source

pub fn get_midi_channels(&self) -> i32

source

pub fn get_midi_voices(&self) -> i32

source

pub fn get_synth_voices(&self) -> i32

source

pub fn get_read_use(&self) -> i32

source

pub fn get_write_use(&self) -> i32

source

pub fn get_port_specified(&self) -> bool

source

pub fn get_timestamping(&self) -> bool

source

pub fn get_timestamp_real(&self) -> bool

source

pub fn get_timestamp_queue(&self) -> i32

source

pub fn set_midi_channels(&self, value: i32)

source

pub fn set_midi_voices(&self, value: i32)

source

pub fn set_synth_voices(&self, value: i32)

source

pub fn set_port_specified(&self, value: bool)

source

pub fn set_timestamping(&self, value: bool)

source

pub fn set_timestamp_real(&self, value: bool)

source

pub fn set_timestamp_queue(&self, value: i32)

Trait Implementations§

source§

impl Debug for PortInfo

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Drop for PortInfo

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl Send for PortInfo

Auto Trait Implementations§

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.