Struct multiversx_sc::imports::DecodeError
source · pub struct DecodeError(/* private fields */);
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§fn from(message_bytes: &'static [u8]) -> DecodeError
fn from(message_bytes: &'static [u8]) -> DecodeError
Converts to this type from the input type.
source§impl From<&'static str> for DecodeError
impl From<&'static str> for DecodeError
source§fn from(message_bytes: &'static str) -> DecodeError
fn from(message_bytes: &'static str) -> DecodeError
Converts to this type from the input type.
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>) -> DecodeError
fn from(_: CapacityError<T>) -> DecodeError
Converts to this type from the input type.
source§impl From<DecodeError> for StaticSCError
impl From<DecodeError> for StaticSCError
source§fn from(err: DecodeError) -> Self
fn from(err: DecodeError) -> Self
Converts to this type from the input type.
source§impl PartialEq for DecodeError
impl PartialEq for DecodeError
source§fn eq(&self, other: &DecodeError) -> bool
fn eq(&self, other: &DecodeError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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