#[non_exhaustive]pub enum AudioFormat {
Fltp,
}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
32-bit floating point planar audio (FLTP).
Trait Implementations§
Source§impl Clone for AudioFormat
impl Clone for AudioFormat
impl Copy for AudioFormat
Source§impl Debug for AudioFormat
impl Debug for AudioFormat
impl Eq for AudioFormat
Source§impl From<AudioFormat> for FourCc
impl From<AudioFormat> for FourCc
Source§fn from(format: AudioFormat) -> Self
fn from(format: AudioFormat) -> Self
Converts to this type from the input type.
Source§impl Hash for AudioFormat
impl Hash for AudioFormat
Source§impl PartialEq for AudioFormat
impl PartialEq 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