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
sourceimpl<'de> Deserialize<'de> for DTLSRole
impl<'de> Deserialize<'de> for DTLSRole
sourcefn 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
sourceimpl 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
sourcefn from(session_description: &SessionDescription) -> Self
fn from(session_description: &SessionDescription) -> Self
Converts to this type from the input type.
impl Copy for DTLSRole
impl Eq for DTLSRole
impl StructuralEq for DTLSRole
impl StructuralPartialEq for DTLSRole
Auto Trait Implementations
impl RefUnwindSafe for DTLSRole
impl Send for DTLSRole
impl Sync for DTLSRole
impl Unpin for DTLSRole
impl UnwindSafe for DTLSRole
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more