pub enum DtlsRole {
Auto,
Client,
Server,
}
Expand description
DTLS role.
Variants§
Auto
The DTLS role is determined based on the resolved ICE role (the Controlled
role acts as
DTLS client, the Controlling
role acts as DTLS server).
Since mediasoup is a ICE Lite implementation it always behaves as ICE Controlled
.
Client
DTLS client role.
Server
DTLS server role.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DtlsRole
impl<'de> Deserialize<'de> for DtlsRole
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for DtlsRole
impl Ord for DtlsRole
Source§impl PartialOrd for DtlsRole
impl PartialOrd for DtlsRole
impl Copy for DtlsRole
impl Eq for DtlsRole
impl StructuralPartialEq for DtlsRole
Auto Trait Implementations§
impl Freeze for DtlsRole
impl RefUnwindSafe for DtlsRole
impl Send for DtlsRole
impl Sync for DtlsRole
impl Unpin for DtlsRole
impl UnwindSafe for DtlsRole
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