Enum stun_rs::MessageClass
source · [−]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
Request
request
Indication
indication
SuccessResponse
success response
ErrorResponse
error response
Trait Implementations
sourceimpl Clone for MessageClass
impl Clone for MessageClass
sourcefn clone(&self) -> MessageClass
fn clone(&self) -> MessageClass
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 MessageClass
impl Debug for MessageClass
sourceimpl PartialEq<MessageClass> for MessageClass
impl PartialEq<MessageClass> for MessageClass
sourcefn eq(&self, other: &MessageClass) -> bool
fn eq(&self, other: &MessageClass) -> bool
sourceimpl TryFrom<u8> for MessageClass
impl TryFrom<u8> for MessageClass
impl Copy for MessageClass
impl Eq for MessageClass
impl StructuralEq for MessageClass
impl StructuralPartialEq for MessageClass
Auto Trait Implementations
impl RefUnwindSafe for MessageClass
impl Send for MessageClass
impl Sync for MessageClass
impl Unpin for MessageClass
impl UnwindSafe for MessageClass
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