pub struct App<'a> { /* private fields */ }
Expand description
A Parsed App packet.
Implementations§
Source§impl<'a> App<'a>
impl<'a> App<'a>
Sourcepub fn name(&self) -> [u8; 4]
pub fn name(&self) -> [u8; 4]
The name
for this App
packet. The name
should be a sequence of 4 ASCII
characters.
Sourcepub fn get_name_string(&self) -> Result<String, FromUtf8Error>
pub fn get_name_string(&self) -> Result<String, FromUtf8Error>
The name
for this App
as a string.
Sourcepub fn builder(ssrc: u32, name: &'a str) -> AppBuilder<'a>
pub fn builder(ssrc: u32, name: &'a str) -> AppBuilder<'a>
Constructs an AppBuilder
.
name
must be “a sequence of four ASCII characters”.
Trait Implementations§
Source§impl RtcpPacket for App<'_>
impl RtcpPacket for App<'_>
Source§const MIN_PACKET_LEN: usize = 12usize
const MIN_PACKET_LEN: usize = 12usize
The minimum size of a particular RTCP packet. A packet shorter than this value will
produce a parsing error.
Source§const PACKET_TYPE: u8 = 204u8
const PACKET_TYPE: u8 = 204u8
The RTCP type of the particular RTCP packet.
Source§impl<'a> RtcpPacketParser<'a> for App<'a>
impl<'a> RtcpPacketParser<'a> for App<'a>
impl<'a> Eq for App<'a>
impl<'a> StructuralPartialEq for App<'a>
Auto Trait Implementations§
impl<'a> Freeze for App<'a>
impl<'a> RefUnwindSafe for App<'a>
impl<'a> Send for App<'a>
impl<'a> Sync for App<'a>
impl<'a> Unpin for App<'a>
impl<'a> UnwindSafe for App<'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