pub enum GvspPacket {
Leader {
block_id: u16,
packet_id: u16,
payload_type: u8,
timestamp: u64,
width: u32,
height: u32,
pixel_format: u32,
},
Payload {
block_id: u16,
packet_id: u16,
data: Bytes,
},
Trailer {
block_id: u16,
packet_id: u16,
status: u16,
chunk_data: Bytes,
},
}Expand description
Representation of a GVSP packet.
Variants§
Leader
Start-of-frame leader packet with metadata.
Fields
Payload
Payload data packet carrying pixel bytes.
Trailer
End-of-frame trailer packet.
Trait Implementations§
Source§impl Clone for GvspPacket
impl Clone for GvspPacket
Source§fn clone(&self) -> GvspPacket
fn clone(&self) -> GvspPacket
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for GvspPacket
impl RefUnwindSafe for GvspPacket
impl Send for GvspPacket
impl Sync for GvspPacket
impl Unpin for GvspPacket
impl UnwindSafe for GvspPacket
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