[−][src]Enum minecraft_protocol::DecodeError
Possible errors while decoding packet.
Variants
Packet was not recognized. Invalid data or wrong protocol version.
Fields of UnknownPacketType
type_id: u8
String length can't be more than provided value.
Fields of IOError
io_error: IoError
Fields of JsonError
json_error: JsonError
Byte array was not recognized as valid UTF-8 string.
Fields of Utf8Error
utf8_error: FromUtf8Error
Boolean are parsed from byte. Valid byte value are 0 or 1.
Fields of UuidParseError
uuid_parse_error: UuidParseError
Fields of UnknownEnumType
type_id: u8
Fields of VarIntTooLong
max_bytes: usize
Trait Implementations
impl Debug for DecodeError
[src]
impl From<Error> for DecodeError
[src]
impl From<Error> for DecodeError
[src]
impl From<FromUtf8Error> for DecodeError
[src]
fn from(utf8_error: FromUtf8Error) -> Self
[src]
impl From<ParseError> for DecodeError
[src]
fn from(uuid_parse_error: UuidParseError) -> Self
[src]
impl From<TagDecodeError> for DecodeError
[src]
Auto Trait Implementations
impl !RefUnwindSafe for DecodeError
impl Send for DecodeError
impl Sync for DecodeError
impl Unpin for DecodeError
impl !UnwindSafe for DecodeError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,