#[non_exhaustive]pub enum GvspContent<'a> {
Leader(GvspLeader),
Payload(&'a [u8]),
Trailer(GvspTrailer),
Unsupported {
packet_format: u8,
},
}Expand description
What a GVSP packet carries after its header.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Leader(GvspLeader)
Data leader (packet id 0).
Payload(&'a [u8])
Generic data payload, borrowed from the datagram.
Trailer(GvspTrailer)
Data trailer.
Unsupported
A packet format this crate does not assemble: all-in (0x04),
H.264 (0x05), multi-zone (0x06), multipart (0x07), GenDC (0x08)
or anything else. Kept as a value so a receiver can count it rather than
lose it as a parse error.
Trait Implementations§
Source§impl<'a> Clone for GvspContent<'a>
impl<'a> Clone for GvspContent<'a>
impl<'a> Copy for GvspContent<'a>
Source§impl<'a> Debug for GvspContent<'a>
impl<'a> Debug for GvspContent<'a>
impl<'a> Eq for GvspContent<'a>
Source§impl<'a> PartialEq for GvspContent<'a>
impl<'a> PartialEq for GvspContent<'a>
impl<'a> StructuralPartialEq for GvspContent<'a>
Auto Trait Implementations§
impl<'a> Freeze for GvspContent<'a>
impl<'a> RefUnwindSafe for GvspContent<'a>
impl<'a> Send for GvspContent<'a>
impl<'a> Sync for GvspContent<'a>
impl<'a> Unpin for GvspContent<'a>
impl<'a> UnsafeUnpin for GvspContent<'a>
impl<'a> UnwindSafe for GvspContent<'a>
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