pub trait WriteOperations: Send + Sync {
// Required methods
fn write_file(&self, absolute_path: &Path, content: &str) -> Result<()>;
fn mkdir(&self, dir: &Path) -> Result<()>;
}Expand description
Pluggable operations for the write tool (matching pi’s WriteOperations). Override these to delegate file writing to remote systems (for example SSH).
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".