Enum webrtc::dtls_transport::dtls_role::DTLSRole
source · pub enum DTLSRole {
Unspecified = 0,
Auto = 1,
Client = 2,
Server = 3,
}
Expand description
DtlsRole indicates the role of the DTLS transport.
Variants§
Unspecified = 0
Auto = 1
DTLSRoleAuto defines the DTLS role is determined based on the resolved ICE role: the ICE controlled role acts as the DTLS client and the ICE controlling role acts as the DTLS server.
Client = 2
DTLSRoleClient defines the DTLS client role.
Server = 3
DTLSRoleServer defines the 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 From<&SessionDescription> for DTLSRole
impl From<&SessionDescription> for DTLSRole
Iterate a SessionDescription from a remote to determine if an explicit role can been determined from it. The decision is made from the first role we we parse. If no role can be found we return DTLSRoleAuto
source§fn from(session_description: &SessionDescription) -> Self
fn from(session_description: &SessionDescription) -> Self
Converts to this type from the input type.
source§impl PartialEq for DTLSRole
impl PartialEq 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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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