Enum stun_rs::CredentialMechanism
source · [−]pub enum CredentialMechanism {
ShortTerm,
LongTerm,
}Expand description
Authentication and message-integrity mechanisms.
The STUN RFC8489
defines two mechanisms for STUN that a client and server
can use to provide authentication and message integrity; these two
mechanisms are known as the short-term credential mechanism and the
long-term credential mechanism. These two mechanisms are optional,
and each usage must specify if and when these mechanisms are used.
Variants
ShortTerm
LongTerm
Implementations
sourceimpl CredentialMechanism
impl CredentialMechanism
sourcepub fn is_short_term(&self) -> bool
pub fn is_short_term(&self) -> bool
Returns true if this is a short-term-credential mechanism
sourcepub fn is_long_term(&self) -> bool
pub fn is_long_term(&self) -> bool
Returns true if this is a long-term-credential mechanism
Trait Implementations
sourceimpl Clone for CredentialMechanism
impl Clone for CredentialMechanism
sourcefn clone(&self) -> CredentialMechanism
fn clone(&self) -> CredentialMechanism
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for CredentialMechanism
impl Debug for CredentialMechanism
sourceimpl PartialEq<CredentialMechanism> for CredentialMechanism
impl PartialEq<CredentialMechanism> for CredentialMechanism
sourcefn eq(&self, other: &CredentialMechanism) -> bool
fn eq(&self, other: &CredentialMechanism) -> bool
impl Copy for CredentialMechanism
impl Eq for CredentialMechanism
impl StructuralEq for CredentialMechanism
impl StructuralPartialEq for CredentialMechanism
Auto Trait Implementations
impl RefUnwindSafe for CredentialMechanism
impl Send for CredentialMechanism
impl Sync for CredentialMechanism
impl Unpin for CredentialMechanism
impl UnwindSafe for CredentialMechanism
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