Enum hebo_codec::error::EncodeError
source · [−]pub enum EncodeError {
InvalidData,
InvalidClientId,
IoError(Error),
InvalidPacketType,
InvalidPacketId,
TooManyData,
InvalidString(StringError),
InvalidTopic(TopicError),
InvalidVarInt,
InvalidReasonCode,
}Variants
InvalidData
InvalidClientId
ClientId is empty or its length exceeds 23. Or contains invalid characters.
IoError(Error)
InvalidPacketType
InvalidPacketId
PacketId should be present but not set. Or PacketId is none where it is required.
TooManyData
Length of data exceeds its limitation
InvalidString(StringError)
InvalidTopic(TopicError)
Violate topic filter rules. No topic is speicified in Subscribe packet. Topic name might contain wildcard characters.
InvalidVarInt
InvalidReasonCode
Used in v5 protocol.
Trait Implementations
sourceimpl Debug for EncodeError
impl Debug for EncodeError
sourceimpl From<Error> for EncodeError
impl From<Error> for EncodeError
sourceimpl From<StringError> for EncodeError
impl From<StringError> for EncodeError
sourcefn from(err: StringError) -> Self
fn from(err: StringError) -> Self
Converts to this type from the input type.
sourceimpl From<TopicError> for EncodeError
impl From<TopicError> for EncodeError
sourcefn from(err: TopicError) -> Self
fn from(err: TopicError) -> Self
Converts to this type from the input type.
sourceimpl From<VarIntError> for EncodeError
impl From<VarIntError> for EncodeError
sourcefn from(_err: VarIntError) -> Self
fn from(_err: VarIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for EncodeError
impl Send for EncodeError
impl Sync for EncodeError
impl Unpin for EncodeError
impl !UnwindSafe for EncodeError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more