pub struct InterleavedFrame<'a> {
pub channel: u8,
pub payload: &'a [u8],
}Available on crate features
ingest and rtsp only.Expand description
A TCP-interleaved binary frame: $, channel id, 16-bit length, then payload
(RFC 2326 §10.12). Used to multiplex RTP/RTCP over the RTSP TCP connection.
Fields§
§channel: u8Interleaved channel id (even = RTP, odd = RTCP, per the SETUP transport).
payload: &'a [u8]The embedded RTP/RTCP packet.
Implementations§
Source§impl<'a> InterleavedFrame<'a>
impl<'a> InterleavedFrame<'a>
Trait Implementations§
Source§impl<'a> Clone for InterleavedFrame<'a>
impl<'a> Clone for InterleavedFrame<'a>
Source§fn clone(&self) -> InterleavedFrame<'a>
fn clone(&self) -> InterleavedFrame<'a>
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 moreSource§impl<'a> Debug for InterleavedFrame<'a>
impl<'a> Debug for InterleavedFrame<'a>
impl<'a> Eq for InterleavedFrame<'a>
Source§impl<'a> PartialEq for InterleavedFrame<'a>
impl<'a> PartialEq for InterleavedFrame<'a>
Source§fn eq(&self, other: &InterleavedFrame<'a>) -> bool
fn eq(&self, other: &InterleavedFrame<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for InterleavedFrame<'a>
Auto Trait Implementations§
impl<'a> Freeze for InterleavedFrame<'a>
impl<'a> RefUnwindSafe for InterleavedFrame<'a>
impl<'a> Send for InterleavedFrame<'a>
impl<'a> Sync for InterleavedFrame<'a>
impl<'a> Unpin for InterleavedFrame<'a>
impl<'a> UnsafeUnpin for InterleavedFrame<'a>
impl<'a> UnwindSafe for InterleavedFrame<'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