pub enum StunMethodKind {
Request,
Response,
Error,
}Expand description
STUN StunMethods Registry
A STUN method is a hex number in the range 0x000-0x0FF. The encoding of a STUN method into a STUN message is described in Section 5.
STUN methods in the range 0x000-0x07F are assigned by IETF Review RFC8126. STUN methods in the range 0x080-0x0FF are assigned by Expert Review RFC8126. The responsibility of the expert is to verify that the selected codepoint(s) is not in use and that the request is not for an abnormally large number of codepoints. Technical review of the extension itself is outside the scope of the designated expert responsibility.
IANA has updated the name for method 0x002 as described below as well as updated the reference from RFC5389 to RFC8489 for the following STUN methods:
0x000: Reserved 0x001: Binding 0x002: Reserved; was SharedSecret prior to RFC5389 0x003: Allocate 0x004: Refresh 0x006: Send 0x007: Data 0x008: CreatePermission 0x009: ChannelBind
Variants§
Trait Implementations§
Source§impl Clone for StunMethodKind
impl Clone for StunMethodKind
Source§fn clone(&self) -> StunMethodKind
fn clone(&self) -> StunMethodKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StunMethodKind
impl Debug for StunMethodKind
Source§impl Hash for StunMethodKind
impl Hash for StunMethodKind
Source§impl PartialEq for StunMethodKind
impl PartialEq for StunMethodKind
impl Copy for StunMethodKind
impl Eq for StunMethodKind
impl StructuralPartialEq for StunMethodKind
Auto Trait Implementations§
impl Freeze for StunMethodKind
impl RefUnwindSafe for StunMethodKind
impl Send for StunMethodKind
impl Sync for StunMethodKind
impl Unpin for StunMethodKind
impl UnwindSafe for StunMethodKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more