Skip to main content

SessionRuntime

Trait SessionRuntime 

Source
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§

Source

fn open(&self, workbook_path: &Path) -> Result<Self::Handle, Error>

Source

fn apply_edits( &self, handle: &Self::Handle, sheet_name: &str, edits: &[CellEdit], ) -> Result<(), Error>

Source

fn recalculate( &self, handle: &Self::Handle, timeout_ms: Option<u64>, ) -> Result<(), Error>

Source

fn save_as( &self, handle: &Self::Handle, output_path: &Path, ) -> Result<PathBuf, Error>

Implementors§