pub struct DecodeError(/* private fields */);Implementations§
Source§impl DecodeError
impl DecodeError
pub const INPUT_TOO_SHORT: DecodeError
pub const INPUT_TOO_LONG: DecodeError
pub const INPUT_OUT_OF_RANGE: DecodeError
pub const INVALID_VALUE: DecodeError
pub const UNSUPPORTED_OPERATION: DecodeError
pub const ARRAY_DECODE_ERROR: DecodeError
pub const UTF8_DECODE_ERROR: DecodeError
pub const CAPACITY_EXCEEDED_ERROR: DecodeError
pub const MULTI_TOO_FEW_ARGS: DecodeError
pub const MULTI_TOO_MANY_ARGS: DecodeError
pub fn message_bytes(&self) -> &'static [u8]
pub fn message_str(&self) -> &'static str
Trait Implementations§
Source§impl Debug for DecodeError
impl Debug for DecodeError
Source§impl From<&'static str> for DecodeError
impl From<&'static str> for DecodeError
Source§impl<T> From<CapacityError<T>> for DecodeError
Allows us to use ? from the try_push to return our DecodeError.
impl<T> From<CapacityError<T>> for DecodeError
Allows us to use ? from the try_push to return our DecodeError.
Source§fn from(_: CapacityError<T>) -> Self
fn from(_: CapacityError<T>) -> Self
Converts to this type from the input type.