Struct near_vm_logic::mocks::mock_memory::MockedMemory
source · pub struct MockedMemory(_);
Implementations§
source§impl MockedMemory
impl MockedMemory
pub const MEMORY_SIZE: u64 = 65_536u64
Trait Implementations§
source§impl Default for MockedMemory
impl Default for MockedMemory
source§impl MemoryLike for MockedMemory
impl MemoryLike for MockedMemory
source§fn fits_memory(&self, slice: MemSlice) -> Result<(), ()>
fn fits_memory(&self, slice: MemSlice) -> Result<(), ()>
Returns success if the memory interval is completely inside smart
contract’s memory. Read more
source§fn view_memory(&self, slice: MemSlice) -> Result<Cow<'_, [u8]>, ()>
fn view_memory(&self, slice: MemSlice) -> Result<Cow<'_, [u8]>, ()>
Returns view of the content of the given memory interval. Read more
Auto Trait Implementations§
impl RefUnwindSafe for MockedMemory
impl Send for MockedMemory
impl Sync for MockedMemory
impl Unpin for MockedMemory
impl UnwindSafe for MockedMemory
Blanket Implementations§
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request