#[non_exhaustive]pub enum SessionLine<'a> {
Version(Version),
Name(SessionName<'a>),
Timing(Timing),
Origin(Origin<'a>),
BandWidth(BandWidth),
Uri(Uri<'a>),
PhoneNumber(PhoneNumber<'a>),
EmailAddress(EmailAddress<'a>),
Connection(Connection),
Description(SessionInformation<'a>),
Media(Media<'a>),
}Expand description
Session Line
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Version(Version)
v=0
Name(SessionName<'a>)
s=-
Timing(Timing)
t=0 0
Origin(Origin<'a>)
o=- 20518 0 IN IP4 203.0.113.1
BandWidth(BandWidth)
b=AS:1024
Uri(Uri<'a>)
u=
PhoneNumber(PhoneNumber<'a>)
p=0118 999 881 999 119 7253
EmailAddress(EmailAddress<'a>)
“e=email@example.com”
Connection(Connection)
c=IN IP4 10.23.42.137
Description(SessionInformation<'a>)
Media(Media<'a>)
`m=video 51744 RTP/AVP 126 97 98 34 31
Implementations§
Source§impl<'a> SessionLine<'a>
impl<'a> SessionLine<'a>
Sourcepub fn into_owned(self) -> SessionLine<'static>
pub fn into_owned(self) -> SessionLine<'static>
Returns a version of self with all fields converted to owning versions.
Source§impl<'a> SessionLine<'a>
impl<'a> SessionLine<'a>
Sourcepub fn as_version_mut(&mut self) -> Option<&mut Version>
pub fn as_version_mut(&mut self) -> Option<&mut Version>
Optionally returns mutable references to the inner fields if this is a SessionLine::Version, otherwise None
Sourcepub fn as_version(&self) -> Option<&Version>
pub fn as_version(&self) -> Option<&Version>
Optionally returns references to the inner fields if this is a SessionLine::Version, otherwise None
Sourcepub fn into_version(self) -> Result<Version, Self>
pub fn into_version(self) -> Result<Version, Self>
Returns the inner fields if this is a SessionLine::Version, otherwise returns back the enum in the Err case of the result
Sourcepub fn as_name_mut(&mut self) -> Option<&mut SessionName<'a>>
pub fn as_name_mut(&mut self) -> Option<&mut SessionName<'a>>
Optionally returns mutable references to the inner fields if this is a SessionLine::Name, otherwise None
Sourcepub fn as_name(&self) -> Option<&SessionName<'a>>
pub fn as_name(&self) -> Option<&SessionName<'a>>
Optionally returns references to the inner fields if this is a SessionLine::Name, otherwise None
Sourcepub fn into_name(self) -> Result<SessionName<'a>, Self>
pub fn into_name(self) -> Result<SessionName<'a>, Self>
Returns the inner fields if this is a SessionLine::Name, otherwise returns back the enum in the Err case of the result
Sourcepub fn as_timing_mut(&mut self) -> Option<&mut Timing>
pub fn as_timing_mut(&mut self) -> Option<&mut Timing>
Optionally returns mutable references to the inner fields if this is a SessionLine::Timing, otherwise None
Sourcepub fn as_timing(&self) -> Option<&Timing>
pub fn as_timing(&self) -> Option<&Timing>
Optionally returns references to the inner fields if this is a SessionLine::Timing, otherwise None
Sourcepub fn into_timing(self) -> Result<Timing, Self>
pub fn into_timing(self) -> Result<Timing, Self>
Returns the inner fields if this is a SessionLine::Timing, otherwise returns back the enum in the Err case of the result
Sourcepub fn as_origin_mut(&mut self) -> Option<&mut Origin<'a>>
pub fn as_origin_mut(&mut self) -> Option<&mut Origin<'a>>
Optionally returns mutable references to the inner fields if this is a SessionLine::Origin, otherwise None
Sourcepub fn as_origin(&self) -> Option<&Origin<'a>>
pub fn as_origin(&self) -> Option<&Origin<'a>>
Optionally returns references to the inner fields if this is a SessionLine::Origin, otherwise None
Sourcepub fn into_origin(self) -> Result<Origin<'a>, Self>
pub fn into_origin(self) -> Result<Origin<'a>, Self>
Returns the inner fields if this is a SessionLine::Origin, otherwise returns back the enum in the Err case of the result
Sourcepub fn as_band_width_mut(&mut self) -> Option<&mut BandWidth>
pub fn as_band_width_mut(&mut self) -> Option<&mut BandWidth>
Optionally returns mutable references to the inner fields if this is a SessionLine::BandWidth, otherwise None
Sourcepub fn as_band_width(&self) -> Option<&BandWidth>
pub fn as_band_width(&self) -> Option<&BandWidth>
Optionally returns references to the inner fields if this is a SessionLine::BandWidth, otherwise None
Sourcepub fn into_band_width(self) -> Result<BandWidth, Self>
pub fn into_band_width(self) -> Result<BandWidth, Self>
Returns the inner fields if this is a SessionLine::BandWidth, otherwise returns back the enum in the Err case of the result
Sourcepub fn as_uri_mut(&mut self) -> Option<&mut Uri<'a>>
pub fn as_uri_mut(&mut self) -> Option<&mut Uri<'a>>
Optionally returns mutable references to the inner fields if this is a SessionLine::Uri, otherwise None
Sourcepub fn as_uri(&self) -> Option<&Uri<'a>>
pub fn as_uri(&self) -> Option<&Uri<'a>>
Optionally returns references to the inner fields if this is a SessionLine::Uri, otherwise None
Sourcepub fn into_uri(self) -> Result<Uri<'a>, Self>
pub fn into_uri(self) -> Result<Uri<'a>, Self>
Returns the inner fields if this is a SessionLine::Uri, otherwise returns back the enum in the Err case of the result
Sourcepub fn as_phone_number_mut(&mut self) -> Option<&mut PhoneNumber<'a>>
pub fn as_phone_number_mut(&mut self) -> Option<&mut PhoneNumber<'a>>
Optionally returns mutable references to the inner fields if this is a SessionLine::PhoneNumber, otherwise None
Sourcepub fn as_phone_number(&self) -> Option<&PhoneNumber<'a>>
pub fn as_phone_number(&self) -> Option<&PhoneNumber<'a>>
Optionally returns references to the inner fields if this is a SessionLine::PhoneNumber, otherwise None
Sourcepub fn into_phone_number(self) -> Result<PhoneNumber<'a>, Self>
pub fn into_phone_number(self) -> Result<PhoneNumber<'a>, Self>
Returns the inner fields if this is a SessionLine::PhoneNumber, otherwise returns back the enum in the Err case of the result
Sourcepub fn as_email_address_mut(&mut self) -> Option<&mut EmailAddress<'a>>
pub fn as_email_address_mut(&mut self) -> Option<&mut EmailAddress<'a>>
Optionally returns mutable references to the inner fields if this is a SessionLine::EmailAddress, otherwise None
Sourcepub fn as_email_address(&self) -> Option<&EmailAddress<'a>>
pub fn as_email_address(&self) -> Option<&EmailAddress<'a>>
Optionally returns references to the inner fields if this is a SessionLine::EmailAddress, otherwise None
Sourcepub fn into_email_address(self) -> Result<EmailAddress<'a>, Self>
pub fn into_email_address(self) -> Result<EmailAddress<'a>, Self>
Returns the inner fields if this is a SessionLine::EmailAddress, otherwise returns back the enum in the Err case of the result
Sourcepub fn as_connection_mut(&mut self) -> Option<&mut Connection>
pub fn as_connection_mut(&mut self) -> Option<&mut Connection>
Optionally returns mutable references to the inner fields if this is a SessionLine::Connection, otherwise None
Sourcepub fn as_connection(&self) -> Option<&Connection>
pub fn as_connection(&self) -> Option<&Connection>
Optionally returns references to the inner fields if this is a SessionLine::Connection, otherwise None
Sourcepub fn into_connection(self) -> Result<Connection, Self>
pub fn into_connection(self) -> Result<Connection, Self>
Returns the inner fields if this is a SessionLine::Connection, otherwise returns back the enum in the Err case of the result
Sourcepub fn as_description_mut(&mut self) -> Option<&mut SessionInformation<'a>>
pub fn as_description_mut(&mut self) -> Option<&mut SessionInformation<'a>>
Optionally returns mutable references to the inner fields if this is a SessionLine::Description, otherwise None
Sourcepub fn as_description(&self) -> Option<&SessionInformation<'a>>
pub fn as_description(&self) -> Option<&SessionInformation<'a>>
Optionally returns references to the inner fields if this is a SessionLine::Description, otherwise None
Sourcepub fn into_description(self) -> Result<SessionInformation<'a>, Self>
pub fn into_description(self) -> Result<SessionInformation<'a>, Self>
Returns the inner fields if this is a SessionLine::Description, otherwise returns back the enum in the Err case of the result
Sourcepub fn as_media_mut(&mut self) -> Option<&mut Media<'a>>
pub fn as_media_mut(&mut self) -> Option<&mut Media<'a>>
Optionally returns mutable references to the inner fields if this is a SessionLine::Media, otherwise None
Sourcepub fn as_media(&self) -> Option<&Media<'a>>
pub fn as_media(&self) -> Option<&Media<'a>>
Optionally returns references to the inner fields if this is a SessionLine::Media, otherwise None
Sourcepub fn into_media(self) -> Result<Media<'a>, Self>
pub fn into_media(self) -> Result<Media<'a>, Self>
Returns the inner fields if this is a SessionLine::Media, otherwise returns back the enum in the Err case of the result
Trait Implementations§
Source§impl<'a> Clone for SessionLine<'a>
impl<'a> Clone for SessionLine<'a>
Source§fn clone(&self) -> SessionLine<'a>
fn clone(&self) -> SessionLine<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more