#[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§
Source§impl<'a> AttributeLine<'a>
impl<'a> AttributeLine<'a>
Sourcepub fn into_owned(self) -> AttributeLine<'static>
pub fn into_owned(self) -> AttributeLine<'static>
Returns a version of self with all fields converted to owning versions.
Source§impl<'a> AttributeLine<'a>
impl<'a> AttributeLine<'a>
Sourcepub fn as_candidate_mut(&mut self) -> Option<&mut Candidate<'a>>
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
Sourcepub fn as_candidate(&self) -> Option<&Candidate<'a>>
pub fn as_candidate(&self) -> Option<&Candidate<'a>>
Optionally returns references to the inner fields if this is a AttributeLine::Candidate, otherwise None
Sourcepub fn into_candidate(self) -> Result<Candidate<'a>, Self>
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
Sourcepub fn as_ice_mut(&mut self) -> Option<&mut IceParameter<'a>>
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
Sourcepub fn as_ice(&self) -> Option<&IceParameter<'a>>
pub fn as_ice(&self) -> Option<&IceParameter<'a>>
Optionally returns references to the inner fields if this is a AttributeLine::Ice, otherwise None
Sourcepub fn into_ice(self) -> Result<IceParameter<'a>, Self>
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
Sourcepub fn as_mid_mut(&mut self) -> Option<&mut Mid<'a>>
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
Sourcepub fn as_mid(&self) -> Option<&Mid<'a>>
pub fn as_mid(&self) -> Option<&Mid<'a>>
Optionally returns references to the inner fields if this is a AttributeLine::Mid, otherwise None
Sourcepub fn into_mid(self) -> Result<Mid<'a>, Self>
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
Sourcepub fn as_msid_semantic_mut(&mut self) -> Option<&mut MsidSemantic<'a>>
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
Sourcepub fn as_msid_semantic(&self) -> Option<&MsidSemantic<'a>>
pub fn as_msid_semantic(&self) -> Option<&MsidSemantic<'a>>
Optionally returns references to the inner fields if this is a AttributeLine::MsidSemantic, otherwise None
Sourcepub fn into_msid_semantic(self) -> Result<MsidSemantic<'a>, Self>
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
Sourcepub fn as_msid_mut(&mut self) -> Option<&mut Msid<'a>>
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
Sourcepub fn as_msid(&self) -> Option<&Msid<'a>>
pub fn as_msid(&self) -> Option<&Msid<'a>>
Optionally returns references to the inner fields if this is a AttributeLine::Msid, otherwise None
Sourcepub fn into_msid(self) -> Result<Msid<'a>, Self>
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
Sourcepub fn as_rtp_map_mut(&mut self) -> Option<&mut RtpMap<'a>>
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
Sourcepub fn as_rtp_map(&self) -> Option<&RtpMap<'a>>
pub fn as_rtp_map(&self) -> Option<&RtpMap<'a>>
Optionally returns references to the inner fields if this is a AttributeLine::RtpMap, otherwise None
Sourcepub fn into_rtp_map(self) -> Result<RtpMap<'a>, Self>
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
Sourcepub fn as_p_time_mut(&mut self) -> Option<&mut PTime>
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
Sourcepub fn as_p_time(&self) -> Option<&PTime>
pub fn as_p_time(&self) -> Option<&PTime>
Optionally returns references to the inner fields if this is a AttributeLine::PTime, otherwise None
Sourcepub fn into_p_time(self) -> Result<PTime, Self>
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
Sourcepub fn as_ssrc_mut(&mut self) -> Option<&mut Ssrc<'a>>
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
Sourcepub fn as_ssrc(&self) -> Option<&Ssrc<'a>>
pub fn as_ssrc(&self) -> Option<&Ssrc<'a>>
Optionally returns references to the inner fields if this is a AttributeLine::Ssrc, otherwise None
Sourcepub fn into_ssrc(self) -> Result<Ssrc<'a>, Self>
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
Sourcepub fn as_bundle_group_mut(&mut self) -> Option<&mut BundleGroup<'a>>
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
Sourcepub fn as_bundle_group(&self) -> Option<&BundleGroup<'a>>
pub fn as_bundle_group(&self) -> Option<&BundleGroup<'a>>
Optionally returns references to the inner fields if this is a AttributeLine::BundleGroup, otherwise None
Sourcepub fn into_bundle_group(self) -> Result<BundleGroup<'a>, Self>
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
Sourcepub fn as_ssrc_group_mut(&mut self) -> Option<&mut SsrcGroup>
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
Sourcepub fn as_ssrc_group(&self) -> Option<&SsrcGroup>
pub fn as_ssrc_group(&self) -> Option<&SsrcGroup>
Optionally returns references to the inner fields if this is a AttributeLine::SsrcGroup, otherwise None
Sourcepub fn into_ssrc_group(self) -> Result<SsrcGroup, Self>
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
Sourcepub fn as_fingerprint_mut(&mut self) -> Option<&mut Fingerprint<'a>>
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
Sourcepub fn as_fingerprint(&self) -> Option<&Fingerprint<'a>>
pub fn as_fingerprint(&self) -> Option<&Fingerprint<'a>>
Optionally returns references to the inner fields if this is a AttributeLine::Fingerprint, otherwise None
Sourcepub fn into_fingerprint(self) -> Result<Fingerprint<'a>, Self>
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
Sourcepub fn as_direction_mut(&mut self) -> Option<&mut Direction>
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
Sourcepub fn as_direction(&self) -> Option<&Direction>
pub fn as_direction(&self) -> Option<&Direction>
Optionally returns references to the inner fields if this is a AttributeLine::Direction, otherwise None
Sourcepub fn into_direction(self) -> Result<Direction, Self>
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
Sourcepub fn as_rtp_mut(&mut self) -> Option<&mut Rtp<'a>>
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
Sourcepub fn as_rtp(&self) -> Option<&Rtp<'a>>
pub fn as_rtp(&self) -> Option<&Rtp<'a>>
Optionally returns references to the inner fields if this is a AttributeLine::Rtp, otherwise None
Sourcepub fn into_rtp(self) -> Result<Rtp<'a>, Self>
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
Sourcepub fn as_rtcp_mut(&mut self) -> Option<&mut Rtcp>
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
Sourcepub fn as_rtcp(&self) -> Option<&Rtcp>
pub fn as_rtcp(&self) -> Option<&Rtcp>
Optionally returns references to the inner fields if this is a AttributeLine::Rtcp, otherwise None
Sourcepub fn into_rtcp(self) -> Result<Rtcp, Self>
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
Sourcepub fn as_fmtp_mut(&mut self) -> Option<&mut Fmtp<'a>>
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
Sourcepub fn as_fmtp(&self) -> Option<&Fmtp<'a>>
pub fn as_fmtp(&self) -> Option<&Fmtp<'a>>
Optionally returns references to the inner fields if this is a AttributeLine::Fmtp, otherwise None
Sourcepub fn into_fmtp(self) -> Result<Fmtp<'a>, Self>
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
Sourcepub fn as_rtcp_fb_mut(&mut self) -> Option<&mut Fb<'a>>
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
Sourcepub fn as_rtcp_fb(&self) -> Option<&Fb<'a>>
pub fn as_rtcp_fb(&self) -> Option<&Fb<'a>>
Optionally returns references to the inner fields if this is a AttributeLine::RtcpFb, otherwise None
Sourcepub fn into_rtcp_fb(self) -> Result<Fb<'a>, Self>
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
Sourcepub fn as_rtcp_option_mut(&mut self) -> Option<&mut RtcpOption>
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
Sourcepub fn as_rtcp_option(&self) -> Option<&RtcpOption>
pub fn as_rtcp_option(&self) -> Option<&RtcpOption>
Optionally returns references to the inner fields if this is a AttributeLine::RtcpOption, otherwise None
Sourcepub fn into_rtcp_option(self) -> Result<RtcpOption, Self>
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
Sourcepub fn as_control_mut(&mut self) -> Option<&mut Control<'a>>
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
Sourcepub fn as_control(&self) -> Option<&Control<'a>>
pub fn as_control(&self) -> Option<&Control<'a>>
Optionally returns references to the inner fields if this is a AttributeLine::Control, otherwise None
Sourcepub fn into_control(self) -> Result<Control<'a>, Self>
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
Sourcepub fn as_setup_role_mut(&mut self) -> Option<&mut SetupRole>
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
Sourcepub fn as_setup_role(&self) -> Option<&SetupRole>
pub fn as_setup_role(&self) -> Option<&SetupRole>
Optionally returns references to the inner fields if this is a AttributeLine::SetupRole, otherwise None
Sourcepub fn into_setup_role(self) -> Result<SetupRole, Self>
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
Sourcepub fn as_extmap_mut(&mut self) -> Option<&mut Extmap<'a>>
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
Sourcepub fn as_extmap(&self) -> Option<&Extmap<'a>>
pub fn as_extmap(&self) -> Option<&Extmap<'a>>
Optionally returns references to the inner fields if this is a AttributeLine::Extmap, otherwise None
Sourcepub fn into_extmap(self) -> Result<Extmap<'a>, Self>
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
Sourcepub fn is_bundle_only(&self) -> bool
pub fn is_bundle_only(&self) -> bool
Returns true if this is a AttributeLine::BundleOnly, otherwise false
Sourcepub fn as_key_value_mut(
&mut self,
) -> Option<(&mut Cow<'a, str>, &mut Cow<'a, str>)>
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
Sourcepub fn as_key_value(&self) -> Option<(&Cow<'a, str>, &Cow<'a, str>)>
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
Sourcepub fn into_key_value(self) -> Result<(Cow<'a, str>, Cow<'a, str>), Self>
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
Sourcepub fn as_key_only_mut(&mut self) -> Option<&mut Cow<'a, str>>
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
Sourcepub fn as_key_only(&self) -> Option<&Cow<'a, str>>
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
Sourcepub fn into_key_only(self) -> Result<Cow<'a, str>, Self>
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>
impl<'a> Clone for AttributeLine<'a>
Source§fn clone(&self) -> AttributeLine<'a>
fn clone(&self) -> AttributeLine<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more