pub struct StorageCache;Expand description
Global accessor to persistent storage that relies on VM-level caching.
Trait Implementations§
Source§impl GlobalStorage for StorageCache
impl GlobalStorage for StorageCache
Source§unsafe fn get_uint<const B: usize, const L: usize>(
host: VM,
key: U256,
offset: usize,
) -> Uint<B, L>
unsafe fn get_uint<const B: usize, const L: usize>( host: VM, key: U256, offset: usize, ) -> Uint<B, L>
Source§unsafe fn get_signed<const B: usize, const L: usize>(
host: VM,
key: U256,
offset: usize,
) -> Signed<B, L>
unsafe fn get_signed<const B: usize, const L: usize>( host: VM, key: U256, offset: usize, ) -> Signed<B, L>
Source§unsafe fn set_uint<const B: usize, const L: usize>(
host: VM,
key: U256,
offset: usize,
value: Uint<B, L>,
)
unsafe fn set_uint<const B: usize, const L: usize>( host: VM, key: U256, offset: usize, value: Uint<B, L>, )
Source§unsafe fn set_signed<const B: usize, const L: usize>(
host: VM,
key: U256,
offset: usize,
value: Signed<B, L>,
)
unsafe fn set_signed<const B: usize, const L: usize>( host: VM, key: U256, offset: usize, value: Signed<B, L>, )
Auto Trait Implementations§
impl Freeze for StorageCache
impl RefUnwindSafe for StorageCache
impl Send for StorageCache
impl Sync for StorageCache
impl Unpin for StorageCache
impl UnsafeUnpin for StorageCache
impl UnwindSafe for StorageCache
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more