pub enum SrtPacket {
Control {
control_type: ControlType,
dest_socket_id: u32,
},
Data {
sequence: u32,
dest_socket_id: u32,
payload_offset: usize,
},
}Available on crate features
ingest and srt only.Expand description
A parsed SRT packet — its header fields and, for data packets, the payload offset (always 16, the fixed header length).
Variants§
Control
A control packet.
Fields
§
control_type: ControlTypeThe control packet type.
Data
A data packet carrying media (here: MPEG-TS) bytes.
Implementations§
Trait Implementations§
impl Eq for SrtPacket
impl StructuralPartialEq for SrtPacket
Auto Trait Implementations§
impl Freeze for SrtPacket
impl RefUnwindSafe for SrtPacket
impl Send for SrtPacket
impl Sync for SrtPacket
impl Unpin for SrtPacket
impl UnsafeUnpin for SrtPacket
impl UnwindSafe for SrtPacket
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