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§
source§impl Clone for MessageClass
impl Clone for MessageClass
source§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 moresource§impl Debug for MessageClass
impl Debug for MessageClass
source§impl PartialEq for MessageClass
impl PartialEq for MessageClass
source§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§
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
)