Enum webrtc::dtls_transport::dtls_role::DTLSRole
source · pub enum DTLSRole {
Unspecified,
Auto,
Client,
Server,
}
Expand description
DtlsRole indicates the role of the DTLS transport.
Variants§
Unspecified
Auto
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
DTLSRoleClient defines the DTLS client role.
Server
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.