Struct sdp_types::Session[][src]

pub struct Session {
Show 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

Parse an SDP session description from a byte slice.

Write the SDP session description to a std::io::Write.

Checks if the given attribute exists.

Gets the first value of the given attribute, if existing.

Gets an iterator over all attribute values of the given name, if existing.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.