#[non_exhaustive]pub enum InputDefect {
Show 57 variants
Layout(LayoutDefect),
ListElement {
setting: &'static str,
index: usize,
},
InvalidHostQuery,
PtzPreset,
RelativeLibraryPath,
MultipleDiscoveryServers,
ForeignRegistration,
EmptyRecordingTracks,
ExactNameFormatRollover,
ExactNameSizeRollover,
FilenamePatternBrace,
FilenamePatternIndexInDirectory,
RecordingPathMissingFilename,
FilePositionOverflow,
SynthesizeRecordingStart,
SessionCounterExhausted,
RecorderGenerationExhausted,
AllocatorPositiveLimits,
AllocatorAllocationLimit,
AllocatorConcurrentLimit,
AllocatorByteLimit,
CompressedAllocationStride,
ExternalAllocationTooSmall,
ExternalAllocationTooLarge,
ExternalAllocationAlignment,
AllocatorGenerationBudget,
AllocatorTokensExhausted,
AllocatorLimitsDiffer,
ConfigurationTooLarge,
ConfigurationJson,
ConfigurationNotObject,
QueueLimits,
QueueIdentifiersExhausted,
QueuedSenderRegistered,
TimeoutTooLong {
requested: DiagnosticDuration,
},
TimeoutInstantOverflow {
requested: DiagnosticDuration,
},
ReceiveDelayTooLong {
requested: DiagnosticDuration,
},
PtzValue {
detail: CompactDiagnostic<PtzDefect>,
},
AlreadyRegistered {
member: &'static str,
},
Empty {
what: &'static str,
},
PathNotUtf8 {
what: &'static str,
},
FilenamePatternToken {
token: Box<str>,
},
FileQueueCapacity {
queue: &'static str,
capacity: usize,
},
AllocationTooLarge {
bytes: usize,
limit: usize,
},
KvmKeySymbol {
keysym: u32,
},
KvmPosition {
x: f32,
y: f32,
},
KvmWheel {
units: f32,
},
KvmTouchCount {
count: usize,
},
QueueFrameTooLarge {
bytes: usize,
limit: usize,
},
ImageSetting {
codec: ImageCodecKind,
setting: ImageSettingKind,
value: u8,
minimum: u8,
maximum: u8,
},
SixteenBitNeedsPng {
codec: ImageCodecKind,
},
ColorTagNeedsPng {
codec: ImageCodecKind,
primaries: Option<ColorPrimaries>,
transfer: Option<TransferFunction>,
},
RecordingPathNotAbsolute,
RecordingPathTooLong {
maximum_bytes: usize,
longest_bytes: usize,
index_digits_reserved: usize,
},
DiscoveryAddressRejected(Box<DiscoveryAddressFailure>),
DiscoveryConfigurationRejected {
object: &'static str,
},
SpeedHqCodec {
codec: VideoCodec,
},
}Expand description
Typed causes of crate::Error::InvalidInput.
InputDefect::Layout reports standalone aspect ratios, frame rates,
compressed video formats and allocation strides through LayoutDefect.
Ordinary causes retain their evidence inline without allocating. Boxed diagnostic fields retain caller or SDK text only for the documented exceptions.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Layout(LayoutDefect)
A refusal of the shared media layout or value checks.
ListElement
A list element is empty, contains a comma, or contains a NUL.
Fields
InvalidHostQuery
Host must be a bare hostname, IP address or NDI machine name.
PtzPreset
PTZ preset must be within 0..=99.
RelativeLibraryPath
an explicit NDI library path must be absolute.
MultipleDiscoveryServers
a listener accepts one Discovery Server endpoint.
ForeignRegistration
the registration was issued by another advertiser.
EmptyRecordingTracks
a recorder must record video, audio or metadata; an empty track selection would record all three.
ExactNameFormatRollover
a recorder with an exact file name cannot roll over at a format change, because the next file would have the same name; use a filename pattern with {index}, or leave format-change rollover unset.
ExactNameSizeRollover
a recorder with an exact file name cannot roll over at a size limit, because the next file would have the same name; use a filename pattern with {index}.
FilenamePatternBrace
unmatched filename-pattern brace.
FilenamePatternIndexInDirectory
A filename index would change the output directory.
RecordingPathMissingFilename
The expanded recording path ends without a file name.
FilePositionOverflow
file position exceeds 64-bit ticks.
SynthesizeRecordingStart
a recording start cannot use Timecode::SYNTHESIZE; choose an explicit start such as zero.
SessionCounterExhausted
the session counter is exhausted.
RecorderGenerationExhausted
the recorder generation is exhausted.
AllocatorPositiveLimits
Allocator limits must be positive.
AllocatorAllocationLimit
The allocation limit exceeds the maximum supported receive allocation.
AllocatorConcurrentLimit
max_concurrent_calls exceeds max_allocations, which counts every call in progress.
AllocatorByteLimit
max_bytes is less than max_concurrent_calls allocations of max_allocation_bytes.
CompressedAllocationStride
Compressed allocations have a byte size, not a configurable stride.
ExternalAllocationTooSmall
External allocation is smaller than the request’s minimum.
ExternalAllocationTooLarge
External allocation is larger than the request’s capacity limit.
ExternalAllocationAlignment
External allocation is not aligned to 64 bytes.
AllocatorGenerationBudget
Process allocator generation budget exhausted.
AllocatorTokensExhausted
Allocator token space exhausted.
AllocatorLimitsDiffer
Allocator limits differ from the existing process allocator service.
ConfigurationTooLarge
Advanced configuration exceeds its byte limit.
ConfigurationJson
Invalid Advanced configuration JSON.
ConfigurationNotObject
Advanced configuration must be a JSON object.
QueueLimits
queue requires 1..=65536 frames and a positive addressable byte limit.
QueueIdentifiersExhausted
queue submission identifiers exhausted.
QueuedSenderRegistered
queued conversion requires a sender without advertiser registrations.
TimeoutTooLong
timeout {requested:?} exceeds MAX_TIMEOUT (4294967294 ms, about 49.7 days).
Fields
requested: DiagnosticDurationThe requested.
TimeoutInstantOverflow
timeout {requested:?} ends at an instant this platform cannot represent.
Fields
requested: DiagnosticDurationThe requested.
ReceiveDelayTooLong
receive delay {requested:?} exceeds 2000 ms.
Fields
requested: DiagnosticDurationThe requested.
PtzValue
{name} must be finite and within {minimum}..={maximum}.
Fields
detail: CompactDiagnostic<PtzDefect>Exact values, boxed only on 32-bit targets.
AlreadyRegistered
{member} is already registered.
Empty
{what} must not be empty.
PathNotUtf8
{what} is not lossless UTF-8.
FilenamePatternToken
unsupported filename-pattern token {{{token}}}.
FileQueueCapacity
async {queue} queue capacity must be between 1 and 4096, not {capacity}.
AllocationTooLarge
An allocation of {bytes} bytes exceeds the capacity limit of {limit} bytes.
KvmKeySymbol
KVM key symbol {keysym:#x} exceeds the SDK’s range, 0..=0x7fffffff.
KvmPosition
KVM position ({x}, {y}) is not within 0..=1 on each axis.
KvmWheel
KVM wheel units {units} are not finite.
KvmTouchCount
{count} KVM touch points are more than the SDK can count.
QueueFrameTooLarge
frame retains {bytes} bytes of allocation capacity, exceeding the queue’s {limit} byte limit.
ImageSetting
A codec setting falls outside its supported range.
SixteenBitNeedsPng
{codec} images are 8 bits a channel; SampleDepth::Sixteen needs ImageFormat::Png.
Fields
codec: ImageCodecKindThe codec.
ColorTagNeedsPng
The image needs a color tag and only PNG can write it.
Fields
codec: ImageCodecKindThe codec.
primaries: Option<ColorPrimaries>The frame’s primaries, if known.
transfer: Option<TransferFunction>The frame’s transfer, if given.
RecordingPathNotAbsolute
The expanded SDK filename is relative on this platform.
RecordingPathTooLong
recording file path may reach {longest_bytes} UTF-8 bytes, exceeding the {maximum_bytes}-byte event path limit ({index_digits_reserved} digits reserved for index growth).
Fields
DiscoveryAddressRejected(Box<DiscoveryAddressFailure>)
The SDK refused the supplied address; arbitrary address text is boxed.
DiscoveryConfigurationRejected
No server was named in the options, and the SDK resolved no usable Discovery Server from its configuration.
SpeedHqCodec
SpeedHQ guidance was applied to another codec.
Fields
codec: VideoCodecThe requested codec.
Trait Implementations§
Source§impl Clone for InputDefect
impl Clone for InputDefect
Source§impl Debug for InputDefect
impl Debug for InputDefect
Source§impl Display for InputDefect
impl Display for InputDefect
Source§impl Error for InputDefect
impl Error for InputDefect
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()