Struct stun::message::MessageType
source · pub struct MessageType {
pub method: Method,
pub class: MessageClass,
}
Fields
method: Method
class: MessageClass
Implementations
sourceimpl MessageType
impl MessageType
pub fn new(method: Method, class: MessageClass) -> Self
pub fn value(&self) -> u16
pub fn read_value(&mut self, value: u16)
Trait Implementations
sourceimpl Clone for MessageType
impl Clone for MessageType
sourcefn clone(&self) -> MessageType
fn clone(&self) -> MessageType
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 MessageType
impl Debug for MessageType
sourceimpl Default for MessageType
impl Default for MessageType
sourcefn default() -> MessageType
fn default() -> MessageType
Returns the “default value” for a type. Read more
sourceimpl Display for MessageType
impl Display for MessageType
sourceimpl PartialEq<MessageType> for MessageType
impl PartialEq<MessageType> for MessageType
sourcefn eq(&self, other: &MessageType) -> bool
fn eq(&self, other: &MessageType) -> bool
impl Copy for MessageType
impl Eq for MessageType
impl StructuralEq for MessageType
impl StructuralPartialEq for MessageType
Auto Trait Implementations
impl RefUnwindSafe for MessageType
impl Send for MessageType
impl Sync for MessageType
impl Unpin for MessageType
impl UnwindSafe for MessageType
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