pub struct Sdp {Show 15 fields
pub version: Version,
pub origin_username: String,
pub origin_session_id: String,
pub origin_session_version: String,
pub origin_network_type: NetworkType,
pub origin_address_type: AddressType,
pub origin_unicast_address: String,
pub session_name: String,
pub session_description: Option<String>,
pub connection_network_type: NetworkType,
pub connection_address_type: AddressType,
pub connection_address: String,
pub timing: (u64, u64),
pub tags: Vec<Tag>,
pub media: Vec<Media>,
}Fields§
§version: Version§origin_username: String§origin_session_id: String§origin_session_version: String§origin_network_type: NetworkType§origin_address_type: AddressType§origin_unicast_address: String§session_name: String§session_description: Option<String>§connection_network_type: NetworkType§connection_address_type: AddressType§connection_address: String§timing: (u64, u64)§media: Vec<Media>Implementations§
Source§impl Sdp
impl Sdp
pub fn new( origin: IpAddr, name: String, destination: IpAddr, time_range: TimeRange, ) -> Self
pub fn with_username(self, username: &str) -> Self
pub fn with_session_version(self, version: usize) -> Self
pub fn with_description(self, description: &str) -> Self
pub fn with_tag(self, tag: Tag) -> Self
pub fn with_media( self, kind: Kind, port: u16, protocol: Protocol, codec_info: CodecInfo<'_>, direction: Direction, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sdp
impl RefUnwindSafe for Sdp
impl Send for Sdp
impl Sync for Sdp
impl Unpin for Sdp
impl UnwindSafe for Sdp
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