pub struct ThreadStore { /* private fields */ }Expand description
Typed handle over StateStore that the executor and events modules share.
The methods are thin wrappers so the store boundary is greppable and the
persisted shape can be asserted in one place (back-compat tests hold).
Implementations§
Source§impl ThreadStore
impl ThreadStore
pub fn new(inner: StateStore, root: PathBuf) -> Self
pub fn state(&self) -> &StateStore
pub fn root(&self) -> &Path
pub fn thread_exists(&self, id: &ThreadId) -> Result<bool>
Trait Implementations§
Source§impl Clone for ThreadStore
impl Clone for ThreadStore
Source§fn clone(&self) -> ThreadStore
fn clone(&self) -> ThreadStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ThreadStore
impl RefUnwindSafe for ThreadStore
impl Send for ThreadStore
impl Sync for ThreadStore
impl Unpin for ThreadStore
impl UnsafeUnpin for ThreadStore
impl UnwindSafe for ThreadStore
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