pub struct MessageHeader<'a> {
pub bits: u8,
pub msg_type: u16,
pub msg_length: u16,
pub cookie: &'a [u8; 4],
pub transaction_id: &'a [u8; 12],
}
Expand description
The STUN message header
Fields§
§bits: u8
The value of the most significant 2 bits
msg_type: u16
Message type
msg_length: u16
Message length
Magic cookie
transaction_id: &'a [u8; 12]
Transaction Id
Trait Implementations§
source§impl<'a> Debug for MessageHeader<'a>
impl<'a> Debug for MessageHeader<'a>
source§impl<'a> PartialEq for MessageHeader<'a>
impl<'a> PartialEq for MessageHeader<'a>
impl<'a> Eq for MessageHeader<'a>
Auto Trait Implementations§
impl<'a> Freeze for MessageHeader<'a>
impl<'a> RefUnwindSafe for MessageHeader<'a>
impl<'a> Send for MessageHeader<'a>
impl<'a> Sync for MessageHeader<'a>
impl<'a> Unpin for MessageHeader<'a>
impl<'a> UnwindSafe for MessageHeader<'a>
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