pub struct Session {Show 13 fields
pub origin: Origin,
pub session_name: String,
pub session_description: Option<String>,
pub uri: Option<String>,
pub emails: Vec<String>,
pub phones: Vec<String>,
pub connection: Option<Connection>,
pub bandwidths: Vec<Bandwidth>,
pub times: Vec<Time>,
pub time_zones: Vec<TimeZone>,
pub key: Option<Key>,
pub attributes: Vec<Attribute>,
pub medias: Vec<Media>,
}
Expand description
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.
Implementations§
Source§impl Session
impl Session
Sourcepub fn has_attribute(&self, name: &str) -> bool
pub fn has_attribute(&self, name: &str) -> bool
Checks if the given attribute exists.
Sourcepub fn get_first_attribute_value(
&self,
name: &str,
) -> Result<Option<&str>, AttributeNotFoundError>
pub fn get_first_attribute_value( &self, name: &str, ) -> Result<Option<&str>, AttributeNotFoundError>
Gets the first value of the given attribute, if existing.
Sourcepub fn get_attribute_values<'a>(
&'a self,
name: &'a str,
) -> Result<impl Iterator<Item = Option<&'a str>> + 'a, AttributeNotFoundError>
pub fn get_attribute_values<'a>( &'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 Eq for Session
impl StructuralPartialEq for Session
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnwindSafe for Session
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more