Enum stun_coder::AttributeEncodeError
source · [−]pub enum AttributeEncodeError {
WriteFailure(Error),
Utf8ValueTooBig {
limit: usize,
length: usize,
},
}
Expand description
Attribute decoding errors.
Variants
WriteFailure(Error)
Error writing field value.
Utf8ValueTooBig
Fields
limit: usize
The size limit specified in RFC
length: usize
The current length of the encoded value
The encoded UTF-8 value crosses the size limit for the field. The REALM, SERVER, reason phrases, and NONCE are limited to 127 characters (763 bytes). USERNAME to 513 bytes.
Trait Implementations
Performs the conversion.