pub struct InMemoryInterruptStore { /* private fields */ }Expand description
In-memory interrupt store: one interrupt per id.
Implementations§
Trait Implementations§
Source§impl Debug for InMemoryInterruptStore
impl Debug for InMemoryInterruptStore
Source§impl Default for InMemoryInterruptStore
impl Default for InMemoryInterruptStore
Source§fn default() -> InMemoryInterruptStore
fn default() -> InMemoryInterruptStore
Returns the “default value” for a type. Read more
Source§impl InterruptStore for InMemoryInterruptStore
impl InterruptStore for InMemoryInterruptStore
Source§fn load(&self, id: &InterruptId) -> Result<Option<Interrupt>, InterruptError>
fn load(&self, id: &InterruptId) -> Result<Option<Interrupt>, InterruptError>
Loads an interrupt by id.
Source§fn load_for_run(
&self,
thread_id: &RunId,
) -> Result<Vec<Interrupt>, InterruptError>
fn load_for_run( &self, thread_id: &RunId, ) -> Result<Vec<Interrupt>, InterruptError>
Loads all interrupts for a run.
Source§fn delete(&self, id: &InterruptId) -> Result<(), InterruptError>
fn delete(&self, id: &InterruptId) -> Result<(), InterruptError>
Deletes an interrupt (e.g. after resolution).
Auto Trait Implementations§
impl !Freeze for InMemoryInterruptStore
impl RefUnwindSafe for InMemoryInterruptStore
impl Send for InMemoryInterruptStore
impl Sync for InMemoryInterruptStore
impl Unpin for InMemoryInterruptStore
impl UnsafeUnpin for InMemoryInterruptStore
impl UnwindSafe for InMemoryInterruptStore
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