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§
Implementations§
source§impl 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§
source§impl Clone for CredentialMechanism
impl Clone for CredentialMechanism
source§fn clone(&self) -> CredentialMechanism
fn clone(&self) -> CredentialMechanism
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CredentialMechanism
impl Debug for CredentialMechanism
source§impl PartialEq for CredentialMechanism
impl PartialEq for CredentialMechanism
impl Copy for CredentialMechanism
impl Eq for CredentialMechanism
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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)