Struct elrond_codec::DecodeError
source · pub struct DecodeError(_);
Implementations§
source§impl DecodeError
impl DecodeError
pub fn message_bytes(&self) -> &'static [u8]
pub fn message_str(&self) -> &'static str
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 = _
Trait Implementations§
source§impl Debug for DecodeError
impl Debug for DecodeError
source§impl From<&'static [u8]> for DecodeError
impl From<&'static [u8]> for DecodeError
source§impl From<&'static str> for DecodeError
impl From<&'static str> for DecodeError
source§impl<T> From<CapacityError<T>> for 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.