pub enum CredentialMechanism {
ShortTerm(Option<Integrity>),
LongTerm,
}Expand description
Describes the kind of credential mechanism that can be used by the STUN agent.
Variants§
ShortTerm(Option<Integrity>)
Short-term credential mechanism
with the specified Integrity in case the agent knows from an external mechanism
which message integrity algorithm is supported by both agents.
LongTerm
Trait Implementations§
Source§impl Clone for CredentialMechanism
impl Clone for CredentialMechanism
Source§fn clone(&self) -> CredentialMechanism
fn clone(&self) -> CredentialMechanism
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CredentialMechanism
Source§impl Debug for CredentialMechanism
impl Debug for CredentialMechanism
impl Eq for CredentialMechanism
Source§impl PartialEq for CredentialMechanism
impl PartialEq for CredentialMechanism
Source§fn eq(&self, other: &CredentialMechanism) -> bool
fn eq(&self, other: &CredentialMechanism) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CredentialMechanism
Auto Trait Implementations§
impl Freeze for CredentialMechanism
impl RefUnwindSafe for CredentialMechanism
impl Send for CredentialMechanism
impl Sync for CredentialMechanism
impl Unpin for CredentialMechanism
impl UnsafeUnpin for CredentialMechanism
impl UnwindSafe for CredentialMechanism
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