Skip to main content

InputDefect

Enum InputDefect 

Source
#[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
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.
§

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

§setting: &'static str

The setting that contains the invalid element.

§index: usize

The zero-based position in the list.

§

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: DiagnosticDuration

The requested.

§

TimeoutInstantOverflow

timeout {requested:?} ends at an instant this platform cannot represent.

Fields

§requested: DiagnosticDuration

The requested.

§

ReceiveDelayTooLong

receive delay {requested:?} exceeds 2000 ms.

Fields

§requested: DiagnosticDuration

The 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.

Fields

§member: &'static str

The member.

§

Empty

{what} must not be empty.

Fields

§what: &'static str

The what.

§

PathNotUtf8

{what} is not lossless UTF-8.

Fields

§what: &'static str

The what.

§

FilenamePatternToken

unsupported filename-pattern token {{{token}}}.

Fields

§token: Box<str>

The token.

§

FileQueueCapacity

async {queue} queue capacity must be between 1 and 4096, not {capacity}.

Fields

§queue: &'static str

The queue.

§capacity: usize

The capacity.

§

AllocationTooLarge

An allocation of {bytes} bytes exceeds the capacity limit of {limit} bytes.

Fields

§bytes: usize

The bytes.

§limit: usize

The limit.

§

KvmKeySymbol

KVM key symbol {keysym:#x} exceeds the SDK’s range, 0..=0x7fffffff.

Fields

§keysym: u32

The keysym.

§

KvmPosition

KVM position ({x}, {y}) is not within 0..=1 on each axis.

Fields

§x: f32

The x.

§y: f32

The y.

§

KvmWheel

KVM wheel units {units} are not finite.

Fields

§units: f32

The units.

§

KvmTouchCount

{count} KVM touch points are more than the SDK can count.

Fields

§count: usize

The count.

§

QueueFrameTooLarge

frame retains {bytes} bytes of allocation capacity, exceeding the queue’s {limit} byte limit.

Fields

§bytes: usize

The bytes.

§limit: usize

The limit.

§

ImageSetting

A codec setting falls outside its supported range.

Fields

§codec: ImageCodecKind

The codec.

§setting: ImageSettingKind

The setting.

§value: u8

The requested value.

§minimum: u8

The minimum.

§maximum: u8

The maximum.

§

SixteenBitNeedsPng

{codec} images are 8 bits a channel; SampleDepth::Sixteen needs ImageFormat::Png.

Fields

§codec: ImageCodecKind

The codec.

§

ColorTagNeedsPng

The image needs a color tag and only PNG can write it.

Fields

§codec: ImageCodecKind

The 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

§maximum_bytes: usize

The maximum bytes.

§longest_bytes: usize

The longest bytes.

§index_digits_reserved: usize

The index digits reserved.

§

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.

Fields

§object: &'static str

The kind of object the SDK refused to create.

§

SpeedHqCodec

SpeedHQ guidance was applied to another codec.

Fields

§codec: VideoCodec

The requested codec.

Trait Implementations§

Source§

impl Clone for InputDefect

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for InputDefect

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for InputDefect

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for InputDefect

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl PartialEq for InputDefect

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for InputDefect

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.