pub struct NeoStorage;Expand description
Storage convenience helpers built on top of the syscall layer.
Implementations§
Source§impl NeoStorage
impl NeoStorage
pub fn get_context() -> NeoResult<NeoStorageContext>
pub fn get_read_only_context() -> NeoResult<NeoStorageContext>
pub fn as_read_only(context: &NeoStorageContext) -> NeoResult<NeoStorageContext>
pub fn get( context: &NeoStorageContext, key: &NeoByteString, ) -> NeoResult<NeoByteString>
pub fn put( context: &NeoStorageContext, key: &NeoByteString, value: &NeoByteString, ) -> NeoResult<()>
pub fn delete(context: &NeoStorageContext, key: &NeoByteString) -> NeoResult<()>
pub fn find( context: &NeoStorageContext, prefix: &NeoByteString, ) -> NeoResult<NeoIterator<NeoValue>>
Auto Trait Implementations§
impl Freeze for NeoStorage
impl RefUnwindSafe for NeoStorage
impl Send for NeoStorage
impl Sync for NeoStorage
impl Unpin for NeoStorage
impl UnwindSafe for NeoStorage
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