pub struct ApplicationDefined {
pub subtype: u8,
pub ssrc: u32,
pub name: [u8; 4],
pub data: Bytes,
}Expand description
An APP packet: experimental or application-specific data that needs no registered packet type.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|V=2|P| subtype | PT=APP=204 | length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| SSRC/CSRC |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| name (ASCII) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| application-dependent data ...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+A receiver that does not recognise the name ignores the packet (RFC 3550 §6.7); this type
is the parsed form either way, so the application can look at name and decide.
Fields§
§subtype: u8Five bits the application may use to tell its own packets apart.
ssrc: u32The source the packet comes from.
name: [u8; 4]The name the application chose, four ASCII characters, case significant.
data: BytesThe application’s data. Its length is a multiple of four octets.
Implementations§
Trait Implementations§
Source§impl Clone for ApplicationDefined
impl Clone for ApplicationDefined
Source§impl Debug for ApplicationDefined
impl Debug for ApplicationDefined
Source§impl Default for ApplicationDefined
impl Default for ApplicationDefined
Source§impl Display for ApplicationDefined
impl Display for ApplicationDefined
impl Eq for ApplicationDefined
Source§impl Marshal for ApplicationDefined
impl Marshal for ApplicationDefined
Source§impl MarshalSize for ApplicationDefined
impl MarshalSize for ApplicationDefined
Source§fn marshal_size(&self) -> usize
fn marshal_size(&self) -> usize
The number of bytes
Marshal::marshal_to will write for this value.Source§impl Packet for ApplicationDefined
impl Packet for ApplicationDefined
Source§impl PartialEq for ApplicationDefined
impl PartialEq for ApplicationDefined
impl StructuralPartialEq for ApplicationDefined
Auto Trait Implementations§
impl !Freeze for ApplicationDefined
impl Forget for ApplicationDefined
impl Move for ApplicationDefined
impl RefUnwindSafe for ApplicationDefined
impl Send for ApplicationDefined
impl Sync for ApplicationDefined
impl Unpin for ApplicationDefined
impl UnsafeUnpin for ApplicationDefined
impl UnwindSafe for ApplicationDefined
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