MediaSection

Struct MediaSection 

Source
pub struct MediaSection<'a> {
Show 27 fields pub type: Cow<'a, str>, pub port: u32, pub protocol: Vec<Cow<'a, str>>, pub payloads: Vec<Cow<'a, str>>, pub connection: Option<Connection>, pub candidates: Vec<Candidate<'a>>, pub ice: Ice<'a>, pub mid: Option<Cow<'a, str>>, pub msid_semantic: Option<MsidSemantic<'a>>, pub msid: Option<Msid<'a>>, pub rtp_map: Vec<RtpMap<'a>>, pub p_time: Option<PTime>, pub ssrc: Vec<Ssrc<'a>>, pub bundle_group: Option<BundleGroup<'a>>, pub bundle_only: bool, pub ssrc_group: Option<SsrcGroup>, pub fingerprint: Option<Fingerprint<'a>>, pub direction: Option<Direction>, pub rtp: Option<Rtp<'a>>, pub rtcp: Option<Rtcp>, pub fmtp: Vec<Fmtp<'a>>, pub rtcp_fb: Vec<Fb<'a>>, pub rtcp_option: Vec<RtcpOption>, pub control: Option<Control<'a>>, pub setup_role: Option<SetupRole>, pub extmap: Vec<Extmap<'a>>, pub attributes: Vec<AttributeLine<'a>>,
}

Fields§

§type: Cow<'a, str>§port: u32§protocol: Vec<Cow<'a, str>>§payloads: Vec<Cow<'a, str>>§connection: Option<Connection>§candidates: Vec<Candidate<'a>>§ice: Ice<'a>§mid: Option<Cow<'a, str>>§msid_semantic: Option<MsidSemantic<'a>>§msid: Option<Msid<'a>>§rtp_map: Vec<RtpMap<'a>>§p_time: Option<PTime>§ssrc: Vec<Ssrc<'a>>§bundle_group: Option<BundleGroup<'a>>§bundle_only: bool§ssrc_group: Option<SsrcGroup>§fingerprint: Option<Fingerprint<'a>>§direction: Option<Direction>§rtp: Option<Rtp<'a>>§rtcp: Option<Rtcp>§fmtp: Vec<Fmtp<'a>>§rtcp_fb: Vec<Fb<'a>>§rtcp_option: Vec<RtcpOption>§control: Option<Control<'a>>§setup_role: Option<SetupRole>§extmap: Vec<Extmap<'a>>§attributes: Vec<AttributeLine<'a>>

Implementations§

Source§

impl<'a> MediaSection<'a>

Source

pub fn into_owned(self) -> MediaSection<'static>

Returns a version of self with all fields converted to owning versions.

Source§

impl<'a> MediaSection<'a>

Source

pub fn media(&self) -> Media<'a>

Trait Implementations§

Source§

impl<'a> Debug for MediaSection<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Default for MediaSection<'a>

Source§

fn default() -> MediaSection<'a>

Returns the “default value” for a type. Read more
Source§

impl<'a> From<Media<'a>> for MediaSection<'a>

Source§

fn from(mline: Media<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> PartialEq for MediaSection<'a>

Source§

fn eq(&self, other: &MediaSection<'a>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl uDisplay for MediaSection<'_>

Source§

fn fmt<W>(&self, f: &mut Formatter<'_, W>) -> Result<(), W::Error>
where W: uWrite + ?Sized,

Formats the value using the given formatter
Source§

impl<'a> Eq for MediaSection<'a>

Source§

impl<'a> StructuralPartialEq for MediaSection<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for MediaSection<'a>

§

impl<'a> RefUnwindSafe for MediaSection<'a>

§

impl<'a> Send for MediaSection<'a>

§

impl<'a> Sync for MediaSection<'a>

§

impl<'a> Unpin for MediaSection<'a>

§

impl<'a> UnwindSafe for MediaSection<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.