pub struct ImageLeader { /* private fields */ }Expand description
Image leader is a specific leader part of stream leader.
When Leader::payload_type returns PayloadType::Image, then the leader contains
ImageLeader in a specific leader part.
Implementations§
Source§impl ImageLeader
impl ImageLeader
Sourcepub fn timestamp(&self) -> Duration
pub fn timestamp(&self) -> Duration
Timestamp when the image is captured. Timestamp represents duration since the device starts running.
Sourcepub fn pixel_format(&self) -> PixelFormat
pub fn pixel_format(&self) -> PixelFormat
Pixel format of the payload image.
Trait Implementations§
Source§impl SpecificLeader for ImageLeader
impl SpecificLeader for ImageLeader
Source§fn from_bytes(buf: &[u8]) -> Result<Self>
fn from_bytes(buf: &[u8]) -> Result<Self>
Construct Specific leader from bytes.
Auto Trait Implementations§
impl Freeze for ImageLeader
impl RefUnwindSafe for ImageLeader
impl Send for ImageLeader
impl Sync for ImageLeader
impl Unpin for ImageLeader
impl UnwindSafe for ImageLeader
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