Skip to main content

MetadataKind

Struct MetadataKind 

Source
pub struct MetadataKind;
Expand description

Marker type for metadata frame capture operations.

Trait Implementations§

Source§

impl CaptureKind for MetadataKind

Source§

const FRAME_TYPE: c_uint = NDIlib_frame_type_e_NDIlib_frame_type_metadata

The frame-type discriminant NDIlib_recv_capture_v3 returns for this kind.
Source§

type Ref<'rx> = MetadataFrameRef<'rx>

The borrowed, zero-copy view of a captured frame, tied to the receiver that produced it.
Source§

type Owned = MetadataFrame

The owned, 'static frame produced by copying a borrowed view.
Source§

unsafe fn capture_into( instance: *mut NDIlib_recv_instance_type, frame: *mut Self::RawFrame, timeout_ms: u32, ) -> c_uint

Run a capture for this kind, routing frame into the matching NDIlib_recv_capture_v3 slot and ignoring the others. Read more
Source§

unsafe fn make_ref<'rx>(guard: Guard<'rx, Self>) -> Result<Self::Ref<'rx>>

Wrap a freshly captured frame guard in its borrowed view, validating any kind-specific invariants (e.g. FourCC) during construction. Read more
Source§

fn ref_to_owned(frame: &Self::Ref<'_>) -> Result<Self::Owned>

Copy a borrowed view into an owned, 'static frame.
Source§

impl FrameFree for MetadataKind

Source§

const REF_DEBUG_NAME: &'static str = "MetadataFrameRef"

The Debug struct name of the borrowed reference that wraps this guard (e.g. "VideoFrameRef" or "FrameSyncVideoRef"), so the shared generic Debug impls render the historically-correct type name.
Source§

type Instance = *mut NDIlib_recv_instance_type

The SDK instance handle that owns the frame buffers (and through which they must be freed).
Source§

type RawFrame = NDIlib_metadata_frame_t

The raw FFI frame type from the NDI SDK.
Source§

unsafe fn free(instance: Self::Instance, frame: &mut Self::RawFrame)

Free a single captured frame through its owning instance. Read more

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> 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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.