pub enum SdpLine<'a> {
Session(SessionLine<'a>),
Attribute(AttributeLine<'a>),
Comment(Cow<'a, str>),
}
Expand description
Sdp Line
Variants
Session(SessionLine<'a>)
Tuple Fields
0: SessionLine<'a>
Attribute(AttributeLine<'a>)
Tuple Fields
0: AttributeLine<'a>
Comment(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 SdpLine::Session
, otherwise None
Optionally returns references to the inner fields if this is a SdpLine::Session
, otherwise None
Returns the inner fields if this is a SdpLine::Session
, otherwise returns back the enum in the Err
case of the result
Optionally returns mutable references to the inner fields if this is a SdpLine::Attribute
, otherwise None
Optionally returns references to the inner fields if this is a SdpLine::Attribute
, otherwise None
Returns the inner fields if this is a SdpLine::Attribute
, otherwise returns back the enum in the Err
case of the result
Optionally returns mutable references to the inner fields if this is a SdpLine::Comment
, otherwise None
Optionally returns references to the inner fields if this is a SdpLine::Comment
, otherwise None
Returns the inner fields if this is a SdpLine::Comment
, otherwise returns back the enum in the Err
case of the result
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for SdpLine<'a>
impl<'a> UnwindSafe for SdpLine<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more