Enum iroh_relay::protos::stun::MessageClass
pub enum MessageClass {
Request,
Indication,
SuccessResponse,
ErrorResponse,
}
Expand description
The STUN message class. Although there are four message classes, there are only two types of transactions in STUN: request/response transactions (which consist of a request message and a response message) and indication transactions (which consist of a single indication message). Response classes are split into error and success responses to aid in quickly processing the STUN message.
Variants§
Trait Implementations§
§impl Clone for MessageClass
impl Clone for MessageClass
§fn clone(&self) -> MessageClass
fn clone(&self) -> MessageClass
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 more§impl Debug for MessageClass
impl Debug for MessageClass
§impl PartialEq for MessageClass
impl PartialEq for MessageClass
§fn eq(&self, other: &MessageClass) -> bool
fn eq(&self, other: &MessageClass) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl TryFrom<u8> for MessageClass
impl TryFrom<u8> for MessageClass
impl Copy for MessageClass
impl Eq for MessageClass
impl StructuralPartialEq for MessageClass
Auto Trait Implementations§
impl Freeze for MessageClass
impl RefUnwindSafe for MessageClass
impl Send for MessageClass
impl Sync for MessageClass
impl Unpin for MessageClass
impl UnwindSafe for MessageClass
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more