Enum rustun::message::MessageErrorKind
source · pub enum MessageErrorKind {
UnexpectedResponse,
MalformedAttribute,
UnknownAttributes(Vec<AttributeType>),
InvalidInput,
Timeout,
Other,
}
Expand description
Possible error kinds.
Variants§
UnexpectedResponse
Unexpected response message.
MalformedAttribute
There are some malformed attributes in a message.
UnknownAttributes(Vec<AttributeType>)
There are unknown comprehension-required attributes.
If a server receives a message that contains unknown comprehension-required attributes,
it should reply an ErrorResponse
message that has the UnknownAttribute
error code and
an UnknownAttributes
attribute.
InvalidInput
Input is invalid.
Timeout
Operation timed out.
Other
Other errors.
Trait Implementations§
source§impl Clone for MessageErrorKind
impl Clone for MessageErrorKind
source§fn clone(&self) -> MessageErrorKind
fn clone(&self) -> MessageErrorKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MessageErrorKind
impl Debug for MessageErrorKind
source§impl ErrorKind for MessageErrorKind
impl ErrorKind for MessageErrorKind
source§impl From<MessageErrorKind> for MessageError
impl From<MessageErrorKind> for MessageError
source§fn from(f: MessageErrorKind) -> Self
fn from(f: MessageErrorKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for MessageErrorKind
impl Send for MessageErrorKind
impl Sync for MessageErrorKind
impl Unpin for MessageErrorKind
impl UnwindSafe for MessageErrorKind
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
source§impl<T> ErrorKindExt for Twhere
T: ErrorKind,
impl<T> ErrorKindExt for Twhere
T: ErrorKind,
source§fn error(self) -> TrackableError<Self>
fn error(self) -> TrackableError<Self>
Makes a
TrackableError
instance without cause. Read moresource§fn cause<E>(self, cause: E) -> TrackableError<Self>
fn cause<E>(self, cause: E) -> TrackableError<Self>
source§fn takes_over<F, K>(self, from: F) -> TrackableError<Self>
fn takes_over<F, K>(self, from: F) -> TrackableError<Self>
Takes over from other
TrackableError
instance. Read more