pub struct AudioEndpoint {
pub id: u8,
pub features: AudioFeatures,
pub address: Option<V2ipStreamSource>,
pub parent: Option<u8>,
pub children: Vec<u8>,
pub inputs_available: Option<u32>,
pub inputs_routed: Option<u32>,
pub linked_device: DeviceUid,
pub linked_endpoint: Option<u8>,
}Expand description
One audio endpoint: an input, an output, or a processing node between them.
The tree is held by id rather than by reference: parent and children
name endpoints in the same AudioEndpoints collection.
Fields§
§id: u8The endpoint’s id within its device.
features: AudioFeaturesWhat this endpoint can do.
address: Option<V2ipStreamSource>The stream this endpoint sends or receives, when it has one.
parent: Option<u8>The endpoint this one feeds into.
children: Vec<u8>The endpoints feeding into this one.
inputs_available: Option<u32>Bitmask of the endpoints that may be routed to this one.
inputs_routed: Option<u32>Bitmask of the endpoints currently routed to this one.
linked_device: DeviceUidThe device holding the endpoint this one is linked to.
linked_endpoint: Option<u8>The endpoint on linked_device this one is linked to.
Implementations§
Trait Implementations§
Source§impl Clone for AudioEndpoint
impl Clone for AudioEndpoint
Source§fn clone(&self) -> AudioEndpoint
fn clone(&self) -> AudioEndpoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AudioEndpoint
impl Debug for AudioEndpoint
Source§impl Default for AudioEndpoint
impl Default for AudioEndpoint
Source§fn default() -> AudioEndpoint
fn default() -> AudioEndpoint
Returns the “default value” for a type. Read more
impl Eq for AudioEndpoint
Source§impl PartialEq for AudioEndpoint
impl PartialEq for AudioEndpoint
impl StructuralPartialEq for AudioEndpoint
Auto Trait Implementations§
impl Freeze for AudioEndpoint
impl RefUnwindSafe for AudioEndpoint
impl Send for AudioEndpoint
impl Sync for AudioEndpoint
impl Unpin for AudioEndpoint
impl UnsafeUnpin for AudioEndpoint
impl UnwindSafe for AudioEndpoint
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