#[non_exhaustive]pub enum SdkResultDefect {
Show 13 variants
UnknownCompletion,
NegativeCount {
operation: NativeFunction,
value: DiagnosticInteger,
},
UnterminatedText {
operation: NativeFunction,
},
InvalidReceiveDelay {
millis: i32,
},
NegativeFormatCount {
what: &'static str,
value: i32,
},
FileTrackCount {
count: u32,
capacity: usize,
},
FileStructureTooLarge {
bytes: usize,
name: &'static str,
},
EventTypeMismatch {
diagnostic: &'static str,
},
InvalidGuidance {
operation: NativeFunction,
value: i32,
},
AvSyncFormatChange {
sample_rate: i32,
channels: i32,
},
UnknownStatus {
operation: NativeFunction,
code: i32,
},
UnexpectedFrameType {
operation: NativeFunction,
kind: u32,
},
MalformedDiscoveryData(DiscoveryDefect),
}Expand description
Typed causes of crate::Error::UnexpectedSdkResult.
Causes retain their evidence inline without allocating.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnknownCompletion
native completion protocol failed; use QueuedSender::close to recover retained frames.
NegativeCount
{operation} returned a negative count: {value}.
UnterminatedText
{operation} returned a string longer than the 4 MiB one string may be.
Fields
operation: NativeFunctionThe operation.
InvalidReceiveDelay
SDK returned invalid receive delay: {millis} ms.
NegativeFormatCount
the source format reports a negative {what}: {value}.
FileTrackCount
source format reports {count} video tracks; the SDK layout holds {capacity}.
FileStructureTooLarge
the File library wrote past the {bytes} bytes this crate’s SDK headers give {name}.
EventTypeMismatch
{diagnostic}.
InvalidGuidance
{operation} returned {value}.
AvSyncFormatChange
NDIlib_avsync_synchronize reported a format change to {sample_rate} Hz and {channels} channels.
UnknownStatus
{operation} returned unknown status {code}.
UnexpectedFrameType
{operation} returned {kind}.
MalformedDiscoveryData(DiscoveryDefect)
A native discovery descriptor violates its array contract.
Trait Implementations§
Source§impl Clone for SdkResultDefect
impl Clone for SdkResultDefect
impl Copy for SdkResultDefect
Source§impl Debug for SdkResultDefect
impl Debug for SdkResultDefect
Source§impl Display for SdkResultDefect
impl Display for SdkResultDefect
impl Eq for SdkResultDefect
Source§impl Error for SdkResultDefect
impl Error for SdkResultDefect
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()