pub struct GenericStreamBlock { /* private fields */ }Expand description
An opaque complete GVSP block with common metadata accessors.
Convert this value into StreamBlock to inspect the image- or EVS-specific
representation. Keeping the inner field private leaves room for adding
common behavior without exposing storage details here.
Implementations§
Source§impl GenericStreamBlock
impl GenericStreamBlock
Sourcepub fn host_time(&self) -> Option<SystemTime>
pub fn host_time(&self) -> Option<SystemTime>
Host-correlated timestamp, when time synchronization is available.
Sourcepub fn height(&self) -> Option<u32>
pub fn height(&self) -> Option<u32>
Image height, or None for a payload without image geometry.
Sourcepub fn status(&self) -> FrameStatus
pub fn status(&self) -> FrameStatus
How the block ended. Only FrameStatus::Complete blocks are
delivered unless the stream was asked for incomplete ones.
Trait Implementations§
Source§impl Clone for GenericStreamBlock
impl Clone for GenericStreamBlock
Source§impl Debug for GenericStreamBlock
impl Debug for GenericStreamBlock
Source§impl From<GenericStreamBlock> for StreamBlock
impl From<GenericStreamBlock> for StreamBlock
Source§fn from(value: GenericStreamBlock) -> Self
fn from(value: GenericStreamBlock) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for GenericStreamBlock
impl RefUnwindSafe for GenericStreamBlock
impl Send for GenericStreamBlock
impl Sync for GenericStreamBlock
impl Unpin for GenericStreamBlock
impl UnsafeUnpin for GenericStreamBlock
impl UnwindSafe for GenericStreamBlock
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