Enum stun_coder::AttributeDecodeError
source · [−]pub enum AttributeDecodeError {
ReadFailure(Error),
InvalidString(FromUtf8Error),
InsufficientData(),
InvalidValue(u128),
UnrecognizedAttributeType {
attr_type: u16,
},
}
Expand description
Attribute encoding errors.
Variants
ReadFailure(Error)
Error reading field value.
InvalidString(FromUtf8Error)
Failed to convert byte sequence into a UTF-8 string.
InsufficientData()
Not enough data was provided to decode the value.
InvalidValue(u128)
Unrecognized field value was provided.
UnrecognizedAttributeType
Fields
attr_type: u16
The provided attribute type that was not recognized
Unrecognized attribute type value was provided.
Trait Implementations
Performs the conversion.
Performs the conversion.