pub struct WorkbookStore { /* private fields */ }Expand description
Manages the lifecycle of all open workbooks.
Implementations§
Source§impl WorkbookStore
impl WorkbookStore
pub fn new() -> Self
pub fn with_config(max_capacity: usize, ttl: Duration) -> Self
pub fn insert(&mut self, entry: WorkbookEntry) -> Result<String, ExcelMcpError>
pub fn get(&mut self, id: &str) -> Option<&WorkbookEntry>
pub fn get_mut(&mut self, id: &str) -> Option<&mut WorkbookEntry>
pub fn remove(&mut self, id: &str) -> Option<WorkbookEntry>
pub fn evict_expired(&mut self) -> Vec<String>
pub fn open_ids(&self) -> Vec<String>
pub fn is_full(&self) -> bool
Trait Implementations§
Source§impl Debug for WorkbookStore
impl Debug for WorkbookStore
Auto Trait Implementations§
impl Freeze for WorkbookStore
impl !RefUnwindSafe for WorkbookStore
impl Send for WorkbookStore
impl Sync for WorkbookStore
impl Unpin for WorkbookStore
impl UnsafeUnpin for WorkbookStore
impl !UnwindSafe for WorkbookStore
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