pub struct HostBackendInfo { /* private fields */ }Expand description
Stable metadata describing a host backend.
Implementations§
Source§impl HostBackendInfo
impl HostBackendInfo
Sourcepub fn new(
id: Symbol,
transport: Symbol,
media: StreamMedia,
hardware_required: bool,
) -> Self
pub fn new( id: Symbol, transport: Symbol, media: StreamMedia, hardware_required: bool, ) -> Self
Builds backend metadata with bounded callbacks and no capabilities.
Sourcepub fn with_capabilities(self, capabilities: Vec<HostBackendCapability>) -> Self
pub fn with_capabilities(self, capabilities: Vec<HostBackendCapability>) -> Self
Replaces the advertised capabilities.
Sourcepub fn media(&self) -> StreamMedia
pub fn media(&self) -> StreamMedia
Returns the backend media.
Sourcepub fn hardware_required(&self) -> bool
pub fn hardware_required(&self) -> bool
Returns whether opening a stream requires hardware.
Sourcepub fn callbacks_bounded(&self) -> bool
pub fn callbacks_bounded(&self) -> bool
Returns whether host callbacks are bounded (non-blocking, fixed queue).
Sourcepub fn capabilities(&self) -> &[HostBackendCapability]
pub fn capabilities(&self) -> &[HostBackendCapability]
Returns the advertised capabilities.
Trait Implementations§
Source§impl Clone for HostBackendInfo
impl Clone for HostBackendInfo
Source§fn clone(&self) -> HostBackendInfo
fn clone(&self) -> HostBackendInfo
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 HostBackendInfo
impl Debug for HostBackendInfo
impl Eq for HostBackendInfo
Source§impl PartialEq for HostBackendInfo
impl PartialEq for HostBackendInfo
Source§fn eq(&self, other: &HostBackendInfo) -> bool
fn eq(&self, other: &HostBackendInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HostBackendInfo
Auto Trait Implementations§
impl Freeze for HostBackendInfo
impl RefUnwindSafe for HostBackendInfo
impl Send for HostBackendInfo
impl Sync for HostBackendInfo
impl Unpin for HostBackendInfo
impl UnsafeUnpin for HostBackendInfo
impl UnwindSafe for HostBackendInfo
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