Enum stun_coder::MessageEncodeError [−][src]
pub enum MessageEncodeError { WriteFailure(Error), HeaderEncodeFailure(HeaderEncodeError), AttributeEncodeFailure(AttributeEncodeError), IntegrityKeyGenerationFailure(IntegrityKeyGenerationError), IncorrectFingerprintAttributePosition { attr_count: usize, fingerprint_attr_idx: usize, }, AttributeAfterIntegrity(), MissingIntegrityPassword(), }
Expand description
Message decoding errors.
Variants
IO error when writing a field value
Tuple Fields of WriteFailure
0: Error
Failure to encode the STUN header section.
Tuple Fields of HeaderEncodeFailure
Failure to encode a STUN attribute
Tuple Fields of AttributeEncodeFailure
Failure to generate an integrity verification key
The Fingerprint attribute is not the last one provided.
Fields of IncorrectFingerprintAttributePosition
An attribute was added after the MessageIntegrity attribute. Only a single Fingerprint attribute can be added after it.
Tuple Fields of AttributeAfterIntegrity
A placeholder MessageIntegrity attribute was set, but no integrity_key
argument was provided to the encode
function making the HMAC computation impossible.
Tuple Fields of MissingIntegrityPassword
Trait Implementations
Performs the conversion.
Performs the conversion.