pub enum AttributeEncodeError {
WriteFailure(Error),
Utf8ValueTooBig {
limit: usize,
length: usize,
},
}
Expand description
Attribute decoding errors.
Variants§
WriteFailure(Error)
Error writing field value.
Utf8ValueTooBig
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§
Source§impl Debug for AttributeEncodeError
impl Debug for AttributeEncodeError
Source§impl Display for AttributeEncodeError
impl Display for AttributeEncodeError
Source§impl Error for AttributeEncodeError
impl Error for AttributeEncodeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<AttributeEncodeError> for MessageEncodeError
impl From<AttributeEncodeError> for MessageEncodeError
Source§fn from(source: AttributeEncodeError) -> Self
fn from(source: AttributeEncodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AttributeEncodeError
impl !RefUnwindSafe for AttributeEncodeError
impl Send for AttributeEncodeError
impl Sync for AttributeEncodeError
impl Unpin for AttributeEncodeError
impl !UnwindSafe for AttributeEncodeError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more