pub enum RawStorageGet {
Found(usize),
Missing,
BufferTooSmall(usize),
}Expand description
Outcome of RawStorage::get_into.
Variants§
Found(usize)
Value was found and fully written into the caller buffer; the contained
usize is the number of bytes written.
Missing
The runtime explicitly reported a null/missing value. Neo N3 storage commonly surfaces absent keys as an empty byte string instead, so callers must not rely on this variant for existence checks.
BufferTooSmall(usize)
Value exists but is larger than the caller buffer; the contained
usize is the byte length the caller must allocate before retrying.
Trait Implementations§
Source§impl Clone for RawStorageGet
impl Clone for RawStorageGet
Source§fn clone(&self) -> RawStorageGet
fn clone(&self) -> RawStorageGet
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 RawStorageGet
Source§impl Debug for RawStorageGet
impl Debug for RawStorageGet
impl Eq for RawStorageGet
Source§impl PartialEq for RawStorageGet
impl PartialEq for RawStorageGet
Source§fn eq(&self, other: &RawStorageGet) -> bool
fn eq(&self, other: &RawStorageGet) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RawStorageGet
Auto Trait Implementations§
impl Freeze for RawStorageGet
impl RefUnwindSafe for RawStorageGet
impl Send for RawStorageGet
impl Sync for RawStorageGet
impl Unpin for RawStorageGet
impl UnsafeUnpin for RawStorageGet
impl UnwindSafe for RawStorageGet
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