pub struct CapabilitiesSummary {
pub channel_formats: Vec<ChannelFormat>,
pub max_channels: u32,
pub grouping_supported: bool,
pub streaming_supported: bool,
pub encryption_supported: bool,
pub vendor_extensions: Option<HashMap<String, Value>>,
}Fields§
§channel_formats: Vec<ChannelFormat>§max_channels: u32§grouping_supported: bool§streaming_supported: bool§encryption_supported: bool§vendor_extensions: Option<HashMap<String, Value>>Implementations§
Source§impl CapabilitiesSummary
impl CapabilitiesSummary
pub fn supports_format(&self, format: &ChannelFormat) -> bool
pub fn validate_stream( &self, format: ChannelFormat, channel_count: usize, ) -> Result<(), String>
pub fn validate_stream_with_mode( &self, format: ChannelFormat, channel_count: usize, mode: CapabilityMatchMode, ) -> Result<CapabilityValidation, String>
pub fn deprecation_warnings( &self, registry: &CapabilityDeprecationRegistry, ) -> Vec<String>
pub fn validate_profile(&self, profile: &StreamProfile) -> Result<(), String>
Trait Implementations§
Source§impl Clone for CapabilitiesSummary
impl Clone for CapabilitiesSummary
Source§fn clone(&self) -> CapabilitiesSummary
fn clone(&self) -> CapabilitiesSummary
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 CapabilitiesSummary
impl Debug for CapabilitiesSummary
Source§impl From<&CapabilitySet> for CapabilitiesSummary
impl From<&CapabilitySet> for CapabilitiesSummary
Source§fn from(caps: &CapabilitySet) -> Self
fn from(caps: &CapabilitySet) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CapabilitiesSummary
impl RefUnwindSafe for CapabilitiesSummary
impl Send for CapabilitiesSummary
impl Sync for CapabilitiesSummary
impl Unpin for CapabilitiesSummary
impl UnsafeUnpin for CapabilitiesSummary
impl UnwindSafe for CapabilitiesSummary
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