#[non_exhaustive]#[repr(u32)]pub enum AudioFormat {
FLTP = 1_884_572_742,
}Expand description
Audio format identifiers (FourCC codes).
Currently NDI primarily uses FLTP (32-bit floating point planar format).
This enum is marked #[non_exhaustive] to allow future NDI SDK versions to add new audio formats
without breaking existing code. Always use a wildcard pattern when matching.
§Examples
use grafton_ndi::AudioFormat;
let format = AudioFormat::FLTP;
// When matching, always include a wildcard for forward compatibility
match format {
AudioFormat::FLTP => println!("32-bit float planar"),
_ => println!("Other format"),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
FLTP = 1_884_572_742
32-bit floating point planar audio (FLTP).
Trait Implementations§
Source§impl Clone for AudioFormat
impl Clone for AudioFormat
Source§fn clone(&self) -> AudioFormat
fn clone(&self) -> AudioFormat
Returns a duplicate of the value. Read more
1.0.0 · 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 AudioFormat
impl Debug for AudioFormat
Source§impl From<AudioFormat> for i32
impl From<AudioFormat> for i32
Source§fn from(value: AudioFormat) -> Self
fn from(value: AudioFormat) -> Self
Converts to this type from the input type.
Source§impl From<AudioFormat> for u32
impl From<AudioFormat> for u32
Source§fn from(enum_value: AudioFormat) -> Self
fn from(enum_value: AudioFormat) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AudioFormat
impl PartialEq for AudioFormat
Source§impl TryFrom<u32> for AudioFormat
impl TryFrom<u32> for AudioFormat
Source§impl TryFromPrimitive for AudioFormat
impl TryFromPrimitive for AudioFormat
impl Copy for AudioFormat
impl Eq for AudioFormat
impl StructuralPartialEq for AudioFormat
Auto Trait Implementations§
impl Freeze for AudioFormat
impl RefUnwindSafe for AudioFormat
impl Send for AudioFormat
impl Sync for AudioFormat
impl Unpin for AudioFormat
impl UnsafeUnpin for AudioFormat
impl UnwindSafe for AudioFormat
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