pub struct MemoryContext { /* private fields */ }Expand description
In-memory execution context for testing and WASM environments
Implementations§
Source§impl MemoryContext
impl MemoryContext
Trait Implementations§
Source§impl Default for MemoryContext
impl Default for MemoryContext
Source§impl ExecutionContext for MemoryContext
impl ExecutionContext for MemoryContext
Source§fn read_content(&self, source: &str) -> Result<String, ServiceError>
fn read_content(&self, source: &str) -> Result<String, ServiceError>
Read content from a source (could be file, memory, network, etc.)
Source§fn write_content(
&self,
_destination: &str,
_content: &str,
) -> Result<(), ServiceError>
fn write_content( &self, _destination: &str, _content: &str, ) -> Result<(), ServiceError>
Write content to a destination
Source§fn list_sources(&self) -> Result<Vec<String>, ServiceError>
fn list_sources(&self) -> Result<Vec<String>, ServiceError>
List available sources (files, URLs, etc.)
Auto Trait Implementations§
impl Freeze for MemoryContext
impl RefUnwindSafe for MemoryContext
impl Send for MemoryContext
impl Sync for MemoryContext
impl Unpin for MemoryContext
impl UnsafeUnpin for MemoryContext
impl UnwindSafe for MemoryContext
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