pub struct ImageTrailer { /* private fields */ }Expand description
A specific trailer part when the payload type is PayloadType::Image.
When Leader::payload_type returns PayloadType::Image, then the trailer
contains ImageTrailer in a specific trailer part.
Implementations§
Source§impl ImageTrailer
impl ImageTrailer
Sourcepub fn actual_height(&self) -> u32
pub fn actual_height(&self) -> u32
Return the actual height of the payload image.
Some U3V cameras support variable frame size, in that case, the height of the image may be less than or equal to the height reported in the leader.
Trait Implementations§
Source§impl SpecificTrailer for ImageTrailer
impl SpecificTrailer for ImageTrailer
Source§fn from_bytes(buf: &[u8]) -> Result<Self>
fn from_bytes(buf: &[u8]) -> Result<Self>
Construct Specific trailer from bytes.
Auto Trait Implementations§
impl Freeze for ImageTrailer
impl RefUnwindSafe for ImageTrailer
impl Send for ImageTrailer
impl Sync for ImageTrailer
impl Unpin for ImageTrailer
impl UnwindSafe for ImageTrailer
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