pub struct SourceId(pub String);Expand description
Opaque identifier for a capturable source.
Formats are platform-specific (e.g. display:\\.\DISPLAY1,
window:1234, audio:system-mix); treat them as opaque strings from
CaptureSource enumeration. The special value "auto" selects the
primary display without enumerating. Window ids are only valid while the
window exists — re-enumerate before building a session.
Tuple Fields§
§0: StringImplementations§
Trait Implementations§
impl Eq for SourceId
impl StructuralPartialEq for SourceId
Auto Trait Implementations§
impl Freeze for SourceId
impl RefUnwindSafe for SourceId
impl Send for SourceId
impl Sync for SourceId
impl Unpin for SourceId
impl UnsafeUnpin for SourceId
impl UnwindSafe for SourceId
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