Enum stun_coder::HeaderDecodeError [−][src]
pub enum HeaderDecodeError { ReadFailure(Error), MagicCookieMismatch(), UnrecognizedMessageMethod(u16), UnrecognizedMessageClass(u16), }
Expand description
Header encoding errors.
Variants
Failed to read field value.
Tuple Fields of ReadFailure
0: Error
The magic cookie field received in STUN header doesn’t match with 0x2112a442. It’s possible that the received byte sequence is not a STUN message.
Tuple Fields of MagicCookieMismatch
Unrecognized message method type value.
Tuple Fields of UnrecognizedMessageMethod
0: u16
Unrecognized message class type value.
Tuple Fields of UnrecognizedMessageClass
0: u16
Trait Implementations
Performs the conversion.