pub trait SessionRuntime {
type Handle;
// Required methods
fn open(&self, workbook_path: &Path) -> Result<Self::Handle, Error>;
fn apply_edits(
&self,
handle: &Self::Handle,
sheet_name: &str,
edits: &[CellEdit],
) -> Result<(), Error>;
fn recalculate(
&self,
handle: &Self::Handle,
timeout_ms: Option<u64>,
) -> Result<(), Error>;
fn save_as(
&self,
handle: &Self::Handle,
output_path: &Path,
) -> Result<PathBuf, Error>;
}Required Associated Types§
Required Methods§
fn open(&self, workbook_path: &Path) -> Result<Self::Handle, Error>
fn apply_edits( &self, handle: &Self::Handle, sheet_name: &str, edits: &[CellEdit], ) -> Result<(), Error>
fn recalculate( &self, handle: &Self::Handle, timeout_ms: Option<u64>, ) -> Result<(), Error>
fn save_as( &self, handle: &Self::Handle, output_path: &Path, ) -> Result<PathBuf, Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".