[−][src]Struct sdp_types::Session
SDP session description.
See RFC 4566 Section 5 for more details.
Fields
origin: Origin
Originator of the session.
session_name: String
Name of the session.
session_description: Option<String>
Session description.
uri: Option<String>
URI to additional information about the session.
emails: Vec<String>
E-Mail contacts for the session.
phones: Vec<String>
Phone contacts for the session.
connection: Option<Connection>
Connection data for the session.
bandwidths: Vec<Bandwidth>
Bandwidth information for the session.
times: Vec<Time>
Timing information for the session.
time_zones: Vec<TimeZone>
Time zone information for the session.
key: Option<Key>
Encryption key for the session.
attributes: Vec<Attribute>
Attributes of the session.
medias: Vec<Media>
Media descriptions for this session.
Methods
impl Session
[src]
pub fn parse(data: &[u8]) -> Result<Session, ParserError>
[src]
Parse an SDP session description from a byte slice.
impl Session
[src]
pub fn write<W: Write>(&self, w: &mut W) -> Result<(), Error>
[src]
Write the SDP session description to a std::io::Write
.
impl Session
[src]
pub fn has_attribute(&self, name: &str) -> bool
[src]
Checks if the given attribute exists.
pub fn get_first_attribute_value(
&self,
name: &str
) -> Result<Option<&str>, AttributeNotFoundError>
[src]
&self,
name: &str
) -> Result<Option<&str>, AttributeNotFoundError>
Gets the first value of the given attribute, if existing.
pub fn get_attribute_values<'a>(
&'a self,
name: &'a str
) -> Result<impl Iterator<Item = Option<&'a str>> + 'a, AttributeNotFoundError>
[src]
&'a self,
name: &'a str
) -> Result<impl Iterator<Item = Option<&'a str>> + 'a, AttributeNotFoundError>
Gets an iterator over all attribute values of the given name, if existing.
Trait Implementations
impl Clone for Session
[src]
impl Debug for Session
[src]
impl Eq for Session
[src]
impl PartialEq<Session> for Session
[src]
impl StructuralEq for Session
[src]
impl StructuralPartialEq for Session
[src]
Auto Trait Implementations
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnwindSafe for Session
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,