pub enum HostBackendCapability {
AudioInput,
AudioOutput,
MidiInput,
MidiOutput,
Duplex,
Hotplug,
Reconnect,
Offline,
Fake,
}Expand description
Capability advertised by a host backend.
Each variant names one host-integration feature a backend may support, such as a media direction, hotplug/reconnect handling, or the deterministic fake transport used during validation.
§Examples
use sim_lib_stream_host::HostBackendCapability;
let symbol = HostBackendCapability::Duplex.symbol();
assert_eq!(symbol.as_qualified_str(), "stream/host-capability/duplex");Variants§
AudioInput
Backend can capture audio from a host input device.
AudioOutput
Backend can render audio to a host output device.
MidiInput
Backend can receive MIDI from a host input port.
MidiOutput
Backend can send MIDI to a host output port.
Duplex
Backend can drive a single full-duplex (input and output) device.
Hotplug
Backend reports device arrival and removal at runtime.
Reconnect
Backend can re-establish a dropped device or peer connection.
Offline
Backend can enumerate and plan without opening hardware streams.
Fake
Backend is a deterministic fake used for validation rather than hardware.
Implementations§
Trait Implementations§
Source§impl Clone for HostBackendCapability
impl Clone for HostBackendCapability
Source§fn clone(&self) -> HostBackendCapability
fn clone(&self) -> HostBackendCapability
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 moreimpl Copy for HostBackendCapability
Source§impl Debug for HostBackendCapability
impl Debug for HostBackendCapability
impl Eq for HostBackendCapability
Source§impl PartialEq for HostBackendCapability
impl PartialEq for HostBackendCapability
Source§fn eq(&self, other: &HostBackendCapability) -> bool
fn eq(&self, other: &HostBackendCapability) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HostBackendCapability
Auto Trait Implementations§
impl Freeze for HostBackendCapability
impl RefUnwindSafe for HostBackendCapability
impl Send for HostBackendCapability
impl Sync for HostBackendCapability
impl Unpin for HostBackendCapability
impl UnsafeUnpin for HostBackendCapability
impl UnwindSafe for HostBackendCapability
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