pub struct Origin { /* private fields */ }Expand description
SDP origin.
Implementations§
Source§impl Origin
impl Origin
Sourcepub fn new<U, A>(
username: U,
session_id: u64,
session_version: u64,
network_type: NetworkType,
address_type: AddressType,
unicast_address: A,
) -> Self
pub fn new<U, A>( username: U, session_id: u64, session_version: u64, network_type: NetworkType, address_type: AddressType, unicast_address: A, ) -> Self
Create a new origin.
Sourcepub fn session_id(&self) -> u64
pub fn session_id(&self) -> u64
Get the session ID.
Sourcepub fn session_version(&self) -> u64
pub fn session_version(&self) -> u64
Get the session version.
Sourcepub fn network_type(&self) -> &NetworkType
pub fn network_type(&self) -> &NetworkType
Get the network type.
Sourcepub fn address_type(&self) -> &AddressType
pub fn address_type(&self) -> &AddressType
Get the address type.
Sourcepub fn unicast_address(&self) -> &str
pub fn unicast_address(&self) -> &str
Get the unicast address.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Origin
impl RefUnwindSafe for Origin
impl Send for Origin
impl Sync for Origin
impl Unpin for Origin
impl UnwindSafe for Origin
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