#[non_exhaustive]pub enum ReceiverColorFormat {
BGRX_BGRA,
UYVY_BGRA,
RGBX_RGBA,
UYVY_RGBA,
Fastest,
Best,
}Expand description
Operational color formats for received video frames.
These values are receiver configuration modes that the NDI SDK can use for
normal receive operation. SDK Max sentinel values are intentionally not
exposed in safe Rust because they are placeholders, not valid receiver
modes.
This enum is marked #[non_exhaustive] so future SDK receiver modes can be
added without another avoidable public enum break. Downstream match
expressions should include a wildcard arm.
Choose an explicit operational value such as ReceiverColorFormat::Fastest,
ReceiverColorFormat::Best, ReceiverColorFormat::RGBX_RGBA, or
ReceiverColorFormat::BGRX_BGRA for receiver configuration.
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.
Trait Implementations§
Source§impl Clone for ReceiverColorFormat
impl Clone for ReceiverColorFormat
Source§fn clone(&self) -> ReceiverColorFormat
fn clone(&self) -> ReceiverColorFormat
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 ReceiverColorFormat
impl Debug for ReceiverColorFormat
Source§impl Default for ReceiverColorFormat
impl Default for ReceiverColorFormat
Source§fn default() -> ReceiverColorFormat
fn default() -> ReceiverColorFormat
Returns the “default value” for a type. Read more
Source§impl From<ReceiverColorFormat> for c_uint
impl From<ReceiverColorFormat> for c_uint
Source§fn from(format: ReceiverColorFormat) -> Self
fn from(format: ReceiverColorFormat) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ReceiverColorFormat
impl PartialEq for ReceiverColorFormat
impl Copy for ReceiverColorFormat
impl Eq for ReceiverColorFormat
impl StructuralPartialEq for ReceiverColorFormat
Auto Trait Implementations§
impl Freeze for ReceiverColorFormat
impl RefUnwindSafe for ReceiverColorFormat
impl Send for ReceiverColorFormat
impl Sync for ReceiverColorFormat
impl Unpin for ReceiverColorFormat
impl UnsafeUnpin for ReceiverColorFormat
impl UnwindSafe for ReceiverColorFormat
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