pub enum FormatNegotiation {
Accept,
Suggest(Format),
Reject,
}Expand description
Outcome of ProcessingObject::is_input_format_supported (and
its output counterpart) — to be defined in crate::apo.
Mirrors the three return paths defined by
IAudioProcessingObject::IsInputFormatSupported:
Self::Accept— the proposed format is acceptable as-is.Self::Suggest— the proposed format is not acceptable, but the named alternative is.Self::Reject— the APO cannot work with this format and has no alternative to suggest.
Variants§
Accept
Format is acceptable; the audio engine should adopt it.
Suggest(Format)
Format is not acceptable; suggest this alternative.
Reject
Format is not acceptable and no alternative is available.
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 Eq 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