pub struct ByteStringFullError {
pub current_len: usize,
pub attempted: usize,
}Expand description
Error returned by NeoByteString::try_push /
NeoByteString::try_extend_from_slice when the on-chain
MAX_SIZE (1 MiB) would be exceeded.
Fields§
§current_len: usizeThe ByteString’s length when the append was attempted.
attempted: usizeThe number of bytes the call tried to append.
Trait Implementations§
Source§impl Clone for ByteStringFullError
impl Clone for ByteStringFullError
Source§fn clone(&self) -> ByteStringFullError
fn clone(&self) -> ByteStringFullError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ByteStringFullError
Source§impl Debug for ByteStringFullError
impl Debug for ByteStringFullError
Source§impl Display for ByteStringFullError
impl Display for ByteStringFullError
impl Eq for ByteStringFullError
Source§impl Error for ByteStringFullError
impl Error for ByteStringFullError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ByteStringFullError
impl PartialEq for ByteStringFullError
Source§fn eq(&self, other: &ByteStringFullError) -> bool
fn eq(&self, other: &ByteStringFullError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ByteStringFullError
Auto Trait Implementations§
impl Freeze for ByteStringFullError
impl RefUnwindSafe for ByteStringFullError
impl Send for ByteStringFullError
impl Sync for ByteStringFullError
impl Unpin for ByteStringFullError
impl UnsafeUnpin for ByteStringFullError
impl UnwindSafe for ByteStringFullError
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