SessionDescriptionBuilder

Struct SessionDescriptionBuilder 

Source
pub struct SessionDescriptionBuilder { /* private fields */ }
Expand description

Session description builder.

Implementations§

Source§

impl SessionDescriptionBuilder

Source

pub fn version(&mut self, version: u16) -> &mut Self

Set the SDP version.

Source

pub fn origin(&mut self, origin: Origin) -> &mut Self

Set origin.

Source

pub fn session_name<T>(&mut self, name: T) -> &mut Self
where T: ToString,

Set the name of the session.

Source

pub fn session_information<T>(&mut self, info: T) -> &mut Self
where T: ToString,

Set session information.

Source

pub fn url<T>(&mut self, url: T) -> &mut Self
where T: ToString,

Set URL.

Source

pub fn email<T>(&mut self, email: T) -> &mut Self
where T: ToString,

Add a given email address.

Source

pub fn phone<T>(&mut self, phone: T) -> &mut Self
where T: ToString,

Add a given phone number.

Source

pub fn connection(&mut self, connection: ConnectionInfo) -> &mut Self

Set a given connection information.

Source

pub fn bandwidth(&mut self, bandwidth: Bandwidth) -> &mut Self

Add a given bandwidth information.

Source

pub fn time_description(&mut self, td: TimeDescription) -> &mut Self

Add a given time description.

Source

pub fn tz_adjustment(&mut self, tz_adjustment: TimeZoneAdjustment) -> &mut Self

Add a given timezone adjustment.

Source

pub fn encryption_key(&mut self, key: EncryptionKey) -> &mut Self

Set a given encryption key.

Source

pub fn flag<T>(&mut self, name: T) -> &mut Self
where T: ToString,

Add a given flag.

Source

pub fn attribute<T, U>(&mut self, name: T, value: U) -> &mut Self
where T: ToString, U: ToString,

Add a given attribute.

Source

pub fn media_description(&mut self, desc: MediaDescription) -> &mut Self

Add a given media description.

Source

pub fn build(self) -> SessionDescription

Build the session description.

Trait Implementations§

Source§

impl Clone for SessionDescriptionBuilder

Source§

fn clone(&self) -> SessionDescriptionBuilder

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.