pub struct FileSystemContext { /* private fields */ }Expand description
File system based execution context
Implementations§
Trait Implementations§
Source§impl ExecutionContext for FileSystemContext
impl ExecutionContext for FileSystemContext
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 FileSystemContext
impl RefUnwindSafe for FileSystemContext
impl Send for FileSystemContext
impl Sync for FileSystemContext
impl Unpin for FileSystemContext
impl UnsafeUnpin for FileSystemContext
impl UnwindSafe for FileSystemContext
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