AttributeLine

Enum AttributeLine 

Source
#[non_exhaustive]
pub enum AttributeLine<'a> {
Show 24 variants Candidate(Candidate<'a>), Ice(IceParameter<'a>), Mid(Mid<'a>), MsidSemantic(MsidSemantic<'a>), Msid(Msid<'a>), RtpMap(RtpMap<'a>), PTime(PTime), Ssrc(Ssrc<'a>), BundleGroup(BundleGroup<'a>), SsrcGroup(SsrcGroup), Fingerprint(Fingerprint<'a>), Direction(Direction), Rtp(Rtp<'a>), Rtcp(Rtcp), Fmtp(Fmtp<'a>), RtcpFb(Fb<'a>), RtcpOption(RtcpOption), Control(Control<'a>), SetupRole(SetupRole), Extmap(Extmap<'a>), BundleOnly, EoC, KeyValue { key: Cow<'a, str>, val: Cow<'a, str>, }, KeyOnly(Cow<'a, str>),
}

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Candidate(Candidate<'a>)

a=candidate:1853887674 2 udp 1518280447 0.0.0.0 36768 typ srflx raddr 192.168.0.196 rport 36768 generation 0

§

Ice(IceParameter<'a>)

§

Mid(Mid<'a>)

§

MsidSemantic(MsidSemantic<'a>)

§

Msid(Msid<'a>)

§

RtpMap(RtpMap<'a>)

§

PTime(PTime)

§

Ssrc(Ssrc<'a>)

§

BundleGroup(BundleGroup<'a>)

§

SsrcGroup(SsrcGroup)

§

Fingerprint(Fingerprint<'a>)

§

Direction(Direction)

§

Rtp(Rtp<'a>)

§

Rtcp(Rtcp)

§

Fmtp(Fmtp<'a>)

§

RtcpFb(Fb<'a>)

§

RtcpOption(RtcpOption)

§

Control(Control<'a>)

§

SetupRole(SetupRole)

§

Extmap(Extmap<'a>)

§

BundleOnly

§

EoC

§

KeyValue

Fields

§key: Cow<'a, str>
§val: Cow<'a, str>
§

KeyOnly(Cow<'a, str>)

Implementations§

Source§

impl<'a> AttributeLine<'a>

Source

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

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

Source§

impl<'a> AttributeLine<'a>

Source

pub fn as_candidate_mut(&mut self) -> Option<&mut Candidate<'a>>

Optionally returns mutable references to the inner fields if this is a AttributeLine::Candidate, otherwise None

Source

pub fn as_candidate(&self) -> Option<&Candidate<'a>>

Optionally returns references to the inner fields if this is a AttributeLine::Candidate, otherwise None

Source

pub fn into_candidate(self) -> Result<Candidate<'a>, Self>

Returns the inner fields if this is a AttributeLine::Candidate, otherwise returns back the enum in the Err case of the result

Source

pub fn as_ice_mut(&mut self) -> Option<&mut IceParameter<'a>>

Optionally returns mutable references to the inner fields if this is a AttributeLine::Ice, otherwise None

Source

pub fn as_ice(&self) -> Option<&IceParameter<'a>>

Optionally returns references to the inner fields if this is a AttributeLine::Ice, otherwise None

Source

pub fn into_ice(self) -> Result<IceParameter<'a>, Self>

Returns the inner fields if this is a AttributeLine::Ice, otherwise returns back the enum in the Err case of the result

Source

pub fn as_mid_mut(&mut self) -> Option<&mut Mid<'a>>

Optionally returns mutable references to the inner fields if this is a AttributeLine::Mid, otherwise None

Source

pub fn as_mid(&self) -> Option<&Mid<'a>>

Optionally returns references to the inner fields if this is a AttributeLine::Mid, otherwise None

Source

pub fn into_mid(self) -> Result<Mid<'a>, Self>

Returns the inner fields if this is a AttributeLine::Mid, otherwise returns back the enum in the Err case of the result

Source

pub fn as_msid_semantic_mut(&mut self) -> Option<&mut MsidSemantic<'a>>

Optionally returns mutable references to the inner fields if this is a AttributeLine::MsidSemantic, otherwise None

Source

pub fn as_msid_semantic(&self) -> Option<&MsidSemantic<'a>>

Optionally returns references to the inner fields if this is a AttributeLine::MsidSemantic, otherwise None

Source

pub fn into_msid_semantic(self) -> Result<MsidSemantic<'a>, Self>

Returns the inner fields if this is a AttributeLine::MsidSemantic, otherwise returns back the enum in the Err case of the result

Source

pub fn as_msid_mut(&mut self) -> Option<&mut Msid<'a>>

Optionally returns mutable references to the inner fields if this is a AttributeLine::Msid, otherwise None

Source

pub fn as_msid(&self) -> Option<&Msid<'a>>

Optionally returns references to the inner fields if this is a AttributeLine::Msid, otherwise None

Source

pub fn into_msid(self) -> Result<Msid<'a>, Self>

Returns the inner fields if this is a AttributeLine::Msid, otherwise returns back the enum in the Err case of the result

Source

pub fn as_rtp_map_mut(&mut self) -> Option<&mut RtpMap<'a>>

Optionally returns mutable references to the inner fields if this is a AttributeLine::RtpMap, otherwise None

Source

pub fn as_rtp_map(&self) -> Option<&RtpMap<'a>>

Optionally returns references to the inner fields if this is a AttributeLine::RtpMap, otherwise None

Source

pub fn into_rtp_map(self) -> Result<RtpMap<'a>, Self>

Returns the inner fields if this is a AttributeLine::RtpMap, otherwise returns back the enum in the Err case of the result

Source

pub fn as_p_time_mut(&mut self) -> Option<&mut PTime>

Optionally returns mutable references to the inner fields if this is a AttributeLine::PTime, otherwise None

Source

pub fn as_p_time(&self) -> Option<&PTime>

Optionally returns references to the inner fields if this is a AttributeLine::PTime, otherwise None

Source

pub fn into_p_time(self) -> Result<PTime, Self>

Returns the inner fields if this is a AttributeLine::PTime, otherwise returns back the enum in the Err case of the result

Source

pub fn as_ssrc_mut(&mut self) -> Option<&mut Ssrc<'a>>

Optionally returns mutable references to the inner fields if this is a AttributeLine::Ssrc, otherwise None

Source

pub fn as_ssrc(&self) -> Option<&Ssrc<'a>>

Optionally returns references to the inner fields if this is a AttributeLine::Ssrc, otherwise None

Source

pub fn into_ssrc(self) -> Result<Ssrc<'a>, Self>

Returns the inner fields if this is a AttributeLine::Ssrc, otherwise returns back the enum in the Err case of the result

Source

pub fn as_bundle_group_mut(&mut self) -> Option<&mut BundleGroup<'a>>

Optionally returns mutable references to the inner fields if this is a AttributeLine::BundleGroup, otherwise None

Source

pub fn as_bundle_group(&self) -> Option<&BundleGroup<'a>>

Optionally returns references to the inner fields if this is a AttributeLine::BundleGroup, otherwise None

Source

pub fn into_bundle_group(self) -> Result<BundleGroup<'a>, Self>

Returns the inner fields if this is a AttributeLine::BundleGroup, otherwise returns back the enum in the Err case of the result

Source

pub fn as_ssrc_group_mut(&mut self) -> Option<&mut SsrcGroup>

Optionally returns mutable references to the inner fields if this is a AttributeLine::SsrcGroup, otherwise None

Source

pub fn as_ssrc_group(&self) -> Option<&SsrcGroup>

Optionally returns references to the inner fields if this is a AttributeLine::SsrcGroup, otherwise None

Source

pub fn into_ssrc_group(self) -> Result<SsrcGroup, Self>

Returns the inner fields if this is a AttributeLine::SsrcGroup, otherwise returns back the enum in the Err case of the result

Source

pub fn as_fingerprint_mut(&mut self) -> Option<&mut Fingerprint<'a>>

Optionally returns mutable references to the inner fields if this is a AttributeLine::Fingerprint, otherwise None

Source

pub fn as_fingerprint(&self) -> Option<&Fingerprint<'a>>

Optionally returns references to the inner fields if this is a AttributeLine::Fingerprint, otherwise None

Source

pub fn into_fingerprint(self) -> Result<Fingerprint<'a>, Self>

Returns the inner fields if this is a AttributeLine::Fingerprint, otherwise returns back the enum in the Err case of the result

Source

pub fn as_direction_mut(&mut self) -> Option<&mut Direction>

Optionally returns mutable references to the inner fields if this is a AttributeLine::Direction, otherwise None

Source

pub fn as_direction(&self) -> Option<&Direction>

Optionally returns references to the inner fields if this is a AttributeLine::Direction, otherwise None

Source

pub fn into_direction(self) -> Result<Direction, Self>

Returns the inner fields if this is a AttributeLine::Direction, otherwise returns back the enum in the Err case of the result

Source

pub fn as_rtp_mut(&mut self) -> Option<&mut Rtp<'a>>

Optionally returns mutable references to the inner fields if this is a AttributeLine::Rtp, otherwise None

Source

pub fn as_rtp(&self) -> Option<&Rtp<'a>>

Optionally returns references to the inner fields if this is a AttributeLine::Rtp, otherwise None

Source

pub fn into_rtp(self) -> Result<Rtp<'a>, Self>

Returns the inner fields if this is a AttributeLine::Rtp, otherwise returns back the enum in the Err case of the result

Source

pub fn as_rtcp_mut(&mut self) -> Option<&mut Rtcp>

Optionally returns mutable references to the inner fields if this is a AttributeLine::Rtcp, otherwise None

Source

pub fn as_rtcp(&self) -> Option<&Rtcp>

Optionally returns references to the inner fields if this is a AttributeLine::Rtcp, otherwise None

Source

pub fn into_rtcp(self) -> Result<Rtcp, Self>

Returns the inner fields if this is a AttributeLine::Rtcp, otherwise returns back the enum in the Err case of the result

Source

pub fn as_fmtp_mut(&mut self) -> Option<&mut Fmtp<'a>>

Optionally returns mutable references to the inner fields if this is a AttributeLine::Fmtp, otherwise None

Source

pub fn as_fmtp(&self) -> Option<&Fmtp<'a>>

Optionally returns references to the inner fields if this is a AttributeLine::Fmtp, otherwise None

Source

pub fn into_fmtp(self) -> Result<Fmtp<'a>, Self>

Returns the inner fields if this is a AttributeLine::Fmtp, otherwise returns back the enum in the Err case of the result

Source

pub fn as_rtcp_fb_mut(&mut self) -> Option<&mut Fb<'a>>

Optionally returns mutable references to the inner fields if this is a AttributeLine::RtcpFb, otherwise None

Source

pub fn as_rtcp_fb(&self) -> Option<&Fb<'a>>

Optionally returns references to the inner fields if this is a AttributeLine::RtcpFb, otherwise None

Source

pub fn into_rtcp_fb(self) -> Result<Fb<'a>, Self>

Returns the inner fields if this is a AttributeLine::RtcpFb, otherwise returns back the enum in the Err case of the result

Source

pub fn as_rtcp_option_mut(&mut self) -> Option<&mut RtcpOption>

Optionally returns mutable references to the inner fields if this is a AttributeLine::RtcpOption, otherwise None

Source

pub fn as_rtcp_option(&self) -> Option<&RtcpOption>

Optionally returns references to the inner fields if this is a AttributeLine::RtcpOption, otherwise None

Source

pub fn into_rtcp_option(self) -> Result<RtcpOption, Self>

Returns the inner fields if this is a AttributeLine::RtcpOption, otherwise returns back the enum in the Err case of the result

Source

pub fn as_control_mut(&mut self) -> Option<&mut Control<'a>>

Optionally returns mutable references to the inner fields if this is a AttributeLine::Control, otherwise None

Source

pub fn as_control(&self) -> Option<&Control<'a>>

Optionally returns references to the inner fields if this is a AttributeLine::Control, otherwise None

Source

pub fn into_control(self) -> Result<Control<'a>, Self>

Returns the inner fields if this is a AttributeLine::Control, otherwise returns back the enum in the Err case of the result

Source

pub fn as_setup_role_mut(&mut self) -> Option<&mut SetupRole>

Optionally returns mutable references to the inner fields if this is a AttributeLine::SetupRole, otherwise None

Source

pub fn as_setup_role(&self) -> Option<&SetupRole>

Optionally returns references to the inner fields if this is a AttributeLine::SetupRole, otherwise None

Source

pub fn into_setup_role(self) -> Result<SetupRole, Self>

Returns the inner fields if this is a AttributeLine::SetupRole, otherwise returns back the enum in the Err case of the result

Source

pub fn as_extmap_mut(&mut self) -> Option<&mut Extmap<'a>>

Optionally returns mutable references to the inner fields if this is a AttributeLine::Extmap, otherwise None

Source

pub fn as_extmap(&self) -> Option<&Extmap<'a>>

Optionally returns references to the inner fields if this is a AttributeLine::Extmap, otherwise None

Source

pub fn into_extmap(self) -> Result<Extmap<'a>, Self>

Returns the inner fields if this is a AttributeLine::Extmap, otherwise returns back the enum in the Err case of the result

Source

pub fn is_bundle_only(&self) -> bool

Returns true if this is a AttributeLine::BundleOnly, otherwise false

Source

pub fn is_eo_c(&self) -> bool

Returns true if this is a AttributeLine::EoC, otherwise false

Source

pub fn as_key_value_mut( &mut self, ) -> Option<(&mut Cow<'a, str>, &mut Cow<'a, str>)>

Optionally returns mutable references to the inner fields if this is a AttributeLine::KeyValue, otherwise None

Source

pub fn as_key_value(&self) -> Option<(&Cow<'a, str>, &Cow<'a, str>)>

Optionally returns references to the inner fields if this is a AttributeLine::KeyValue, otherwise None

Source

pub fn into_key_value(self) -> Result<(Cow<'a, str>, Cow<'a, str>), Self>

Returns the inner fields if this is a AttributeLine::KeyValue, otherwise returns back the enum in the Err case of the result

Source

pub fn as_key_only_mut(&mut self) -> Option<&mut Cow<'a, str>>

Optionally returns mutable references to the inner fields if this is a AttributeLine::KeyOnly, otherwise None

Source

pub fn as_key_only(&self) -> Option<&Cow<'a, str>>

Optionally returns references to the inner fields if this is a AttributeLine::KeyOnly, otherwise None

Source

pub fn into_key_only(self) -> Result<Cow<'a, str>, Self>

Returns the inner fields if this is a AttributeLine::KeyOnly, otherwise returns back the enum in the Err case of the result

Trait Implementations§

Source§

impl<'a> Clone for AttributeLine<'a>

Source§

fn clone(&self) -> AttributeLine<'a>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for AttributeLine<'a>

Source§

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

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

impl<'a> PartialEq for AttributeLine<'a>

Source§

fn eq(&self, other: &AttributeLine<'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 AttributeLine<'_>

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 AttributeLine<'a>

Source§

impl<'a> StructuralPartialEq for AttributeLine<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for AttributeLine<'a>

§

impl<'a> RefUnwindSafe for AttributeLine<'a>

§

impl<'a> Send for AttributeLine<'a>

§

impl<'a> Sync for AttributeLine<'a>

§

impl<'a> Unpin for AttributeLine<'a>

§

impl<'a> UnwindSafe for AttributeLine<'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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.