pub struct App<'a> { /* private fields */ }
Expand description
A Parsed App packet.
Implementations§
Source§impl<'a> App<'a>
impl<'a> App<'a>
pub const NAME_LEN: usize = 4usize
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<'a> RtcpPacket for App<'a>
impl<'a> RtcpPacket for App<'a>
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