pub enum FormatNegotiation {
Accept,
Suggest(StreamFormat),
Reject,
}Expand description
The outcome of a stream-format negotiation.
Mirrors the three ways an AudioServerPlugin can answer the HAL’s
“can you do this format?” query
(AudioServerPlugInDriverInterface::GetPropertyData over
kAudioStreamPropertyAvailableVirtualFormats and the format
setters):
Self::Accept— the proposed format is supported as-is.Self::Suggest— the proposed format is not supported, but the named alternative is the closest one that is.Self::Reject— the format is not supported and there is no sensible alternative to offer.
Variants§
Accept
The proposed format is supported; adopt it unchanged.
Suggest(StreamFormat)
The proposed format is not supported; this alternative is.
Reject
The proposed format is not supported and no alternative is offered.
Trait Implementations§
Source§impl Clone for FormatNegotiation
impl Clone for FormatNegotiation
Source§fn clone(&self) -> FormatNegotiation
fn clone(&self) -> FormatNegotiation
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 FormatNegotiation
impl Debug for FormatNegotiation
Source§impl PartialEq for FormatNegotiation
impl PartialEq for FormatNegotiation
Source§fn eq(&self, other: &FormatNegotiation) -> bool
fn eq(&self, other: &FormatNegotiation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for FormatNegotiation
impl StructuralPartialEq for FormatNegotiation
Auto Trait Implementations§
impl Freeze for FormatNegotiation
impl RefUnwindSafe for FormatNegotiation
impl Send for FormatNegotiation
impl Sync for FormatNegotiation
impl Unpin for FormatNegotiation
impl UnsafeUnpin for FormatNegotiation
impl UnwindSafe for FormatNegotiation
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