pub struct MediaName {
pub media: String,
pub port: RangedPort,
pub protos: Vec<String>,
pub formats: Vec<String>,
}Expand description
MediaName describes the “m=” field storage structure.
Fields§
§media: StringThe media type: audio, video, or application for data channels.
port: RangedPortThe transport port, possibly a range.
protos: Vec<String>The transport protocol tokens, such as UDP, TLS, RTP, SAVPF.
formats: Vec<String>The payload types (for RTP media) or format tokens this section offers.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MediaName
impl RefUnwindSafe for MediaName
impl Send for MediaName
impl Sync for MediaName
impl Unpin for MediaName
impl UnsafeUnpin for MediaName
impl UnwindSafe for MediaName
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