#[non_exhaustive]pub enum PacketPosition {
First,
Middle,
Last,
Solo,
}Expand description
PP: Packet Position Flag — position of the data packet in its message
(draft-sharabayko-srt-01 §3.1).
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.
First
10b: first packet of the message.
Middle
00b: a packet in the middle of the message.
Last
01b: last packet of the message.
Solo
11b: the whole message fits in a single data packet.
Implementations§
Trait Implementations§
Source§impl Clone for PacketPosition
impl Clone for PacketPosition
Source§fn clone(&self) -> PacketPosition
fn clone(&self) -> PacketPosition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PacketPosition
Source§impl Debug for PacketPosition
impl Debug for PacketPosition
Source§impl Display for PacketPosition
impl Display for PacketPosition
impl Eq for PacketPosition
Source§impl Hash for PacketPosition
impl Hash for PacketPosition
Source§impl PartialEq for PacketPosition
impl PartialEq for PacketPosition
Source§impl Serialize for PacketPosition
Available on crate feature serde only.
impl Serialize for PacketPosition
Available on crate feature
serde only.impl StructuralPartialEq for PacketPosition
Auto Trait Implementations§
impl Freeze for PacketPosition
impl RefUnwindSafe for PacketPosition
impl Send for PacketPosition
impl Sync for PacketPosition
impl Unpin for PacketPosition
impl UnsafeUnpin for PacketPosition
impl UnwindSafe for PacketPosition
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