Enum sdp_nom::attributes::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
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
KeyOnly(Cow<'a, str>)
Implementations
Returns a version of self
with all fields converted to owning versions.
Optionally returns mutable references to the inner fields if this is a AttributeLine::Candidate
, otherwise None
Optionally returns references to the inner fields if this is a AttributeLine::Candidate
, otherwise None
Returns the inner fields if this is a AttributeLine::Candidate
, otherwise returns back the enum in the Err
case of the result
Optionally returns mutable references to the inner fields if this is a AttributeLine::Ice
, otherwise None
Optionally returns references to the inner fields if this is a AttributeLine::Ice
, otherwise None
Returns the inner fields if this is a AttributeLine::Ice
, otherwise returns back the enum in the Err
case of the result
Optionally returns mutable references to the inner fields if this is a AttributeLine::Mid
, otherwise None
Optionally returns references to the inner fields if this is a AttributeLine::Mid
, otherwise None
Returns the inner fields if this is a AttributeLine::Mid
, otherwise returns back the enum in the Err
case of the result
Optionally returns mutable references to the inner fields if this is a AttributeLine::MsidSemantic
, otherwise None
Optionally returns references to the inner fields if this is a AttributeLine::MsidSemantic
, otherwise None
Returns the inner fields if this is a AttributeLine::MsidSemantic
, otherwise returns back the enum in the Err
case of the result
Optionally returns mutable references to the inner fields if this is a AttributeLine::Msid
, otherwise None
Optionally returns references to the inner fields if this is a AttributeLine::Msid
, otherwise None
Returns the inner fields if this is a AttributeLine::Msid
, otherwise returns back the enum in the Err
case of the result
Optionally returns mutable references to the inner fields if this is a AttributeLine::RtpMap
, otherwise None
Optionally returns references to the inner fields if this is a AttributeLine::RtpMap
, otherwise None
Returns the inner fields if this is a AttributeLine::RtpMap
, otherwise returns back the enum in the Err
case of the result
Optionally returns mutable references to the inner fields if this is a AttributeLine::PTime
, otherwise None
Optionally returns references to the inner fields if this is a AttributeLine::PTime
, otherwise None
Returns the inner fields if this is a AttributeLine::PTime
, otherwise returns back the enum in the Err
case of the result
Optionally returns mutable references to the inner fields if this is a AttributeLine::Ssrc
, otherwise None
Optionally returns references to the inner fields if this is a AttributeLine::Ssrc
, otherwise None
Returns the inner fields if this is a AttributeLine::Ssrc
, otherwise returns back the enum in the Err
case of the result
Optionally returns mutable references to the inner fields if this is a AttributeLine::BundleGroup
, otherwise None
Optionally returns references to the inner fields if this is a AttributeLine::BundleGroup
, otherwise None
Returns the inner fields if this is a AttributeLine::BundleGroup
, otherwise returns back the enum in the Err
case of the result
Optionally returns mutable references to the inner fields if this is a AttributeLine::SsrcGroup
, otherwise None
Optionally returns references to the inner fields if this is a AttributeLine::SsrcGroup
, otherwise None
Returns the inner fields if this is a AttributeLine::SsrcGroup
, otherwise returns back the enum in the Err
case of the result
Optionally returns mutable references to the inner fields if this is a AttributeLine::Fingerprint
, otherwise None
Optionally returns references to the inner fields if this is a AttributeLine::Fingerprint
, otherwise None
Returns the inner fields if this is a AttributeLine::Fingerprint
, otherwise returns back the enum in the Err
case of the result
Optionally returns mutable references to the inner fields if this is a AttributeLine::Direction
, otherwise None
Optionally returns references to the inner fields if this is a AttributeLine::Direction
, otherwise None
Returns the inner fields if this is a AttributeLine::Direction
, otherwise returns back the enum in the Err
case of the result
Optionally returns mutable references to the inner fields if this is a AttributeLine::Rtp
, otherwise None
Optionally returns references to the inner fields if this is a AttributeLine::Rtp
, otherwise None
Returns the inner fields if this is a AttributeLine::Rtp
, otherwise returns back the enum in the Err
case of the result
Optionally returns mutable references to the inner fields if this is a AttributeLine::Rtcp
, otherwise None
Optionally returns references to the inner fields if this is a AttributeLine::Rtcp
, otherwise None
Returns the inner fields if this is a AttributeLine::Rtcp
, otherwise returns back the enum in the Err
case of the result
Optionally returns mutable references to the inner fields if this is a AttributeLine::Fmtp
, otherwise None
Optionally returns references to the inner fields if this is a AttributeLine::Fmtp
, otherwise None
Returns the inner fields if this is a AttributeLine::Fmtp
, otherwise returns back the enum in the Err
case of the result
Optionally returns mutable references to the inner fields if this is a AttributeLine::RtcpFb
, otherwise None
Optionally returns references to the inner fields if this is a AttributeLine::RtcpFb
, otherwise None
Returns the inner fields if this is a AttributeLine::RtcpFb
, otherwise returns back the enum in the Err
case of the result
Optionally returns mutable references to the inner fields if this is a AttributeLine::RtcpOption
, otherwise None
Optionally returns references to the inner fields if this is a AttributeLine::RtcpOption
, otherwise None
Returns the inner fields if this is a AttributeLine::RtcpOption
, otherwise returns back the enum in the Err
case of the result
Optionally returns mutable references to the inner fields if this is a AttributeLine::Control
, otherwise None
Optionally returns references to the inner fields if this is a AttributeLine::Control
, otherwise None
Returns the inner fields if this is a AttributeLine::Control
, otherwise returns back the enum in the Err
case of the result
Optionally returns mutable references to the inner fields if this is a AttributeLine::SetupRole
, otherwise None
Optionally returns references to the inner fields if this is a AttributeLine::SetupRole
, otherwise None
Returns the inner fields if this is a AttributeLine::SetupRole
, otherwise returns back the enum in the Err
case of the result
Optionally returns mutable references to the inner fields if this is a AttributeLine::Extmap
, otherwise None
Optionally returns references to the inner fields if this is a AttributeLine::Extmap
, otherwise None
Returns the inner fields if this is a AttributeLine::Extmap
, otherwise returns back the enum in the Err
case of the result
Optionally returns references to the inner fields if this is a AttributeLine::BundleOnly
, otherwise None
Optionally returns references to the inner fields if this is a AttributeLine::BundleOnly
, otherwise None
Optionally returns references to the inner fields if this is a AttributeLine::EoC
, otherwise None
Optionally returns references to the inner fields if this is a AttributeLine::EoC
, otherwise None
Optionally returns mutable references to the inner fields if this is a AttributeLine::KeyValue
, otherwise None
Optionally returns references to the inner fields if this is a AttributeLine::KeyValue
, otherwise None
Returns the inner fields if this is a AttributeLine::KeyValue
, otherwise returns back the enum in the Err
case of the result
Optionally returns mutable references to the inner fields if this is a AttributeLine::KeyOnly
, otherwise None
Optionally returns references to the inner fields if this is a AttributeLine::KeyOnly
, otherwise None
Returns the inner fields if this is a AttributeLine::KeyOnly
, otherwise returns back the enum in the Err
case of the result
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
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
Mutably borrows from an owned value. Read more