pub struct PwNode {
pub id: u32,
pub name: String,
pub description: String,
pub media_class: String,
pub is_stream: bool,
}Expand description
One of PipeWire’s nodes: a device’s sink or source, or a program’s stream.
Fields§
§id: u32PipeWire’s id for it, which the links name: the key to give
children_keyed. A new node may reuse a gone one’s id.
name: StringIts node.name, such as alsa_output.pci-0000_00_1f.3.analog-stereo.
description: StringIts node.description, else its node.nick, else its name.
media_class: StringIts media.class, such as Audio/Sink or Stream/Input/Video.
is_stream: boolWhether it is a program’s stream: its class starts with Stream/.
Trait Implementations§
impl Eq for PwNode
impl StructuralPartialEq for PwNode
Auto Trait Implementations§
impl Forget for PwNode
impl Freeze for PwNode
impl Move for PwNode
impl RefUnwindSafe for PwNode
impl Send for PwNode
impl Sync for PwNode
impl Unpin for PwNode
impl UnsafeUnpin for PwNode
impl UnwindSafe for PwNode
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