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