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.
Source§impl PartialEq for DecodeError
impl PartialEq for DecodeError
impl Eq for DecodeError
impl StructuralPartialEq for DecodeError
Auto Trait Implementations§
impl Freeze for DecodeError
impl RefUnwindSafe for DecodeError
impl Send for DecodeError
impl Sync for DecodeError
impl Unpin for DecodeError
impl UnwindSafe for DecodeError
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