pub struct CookbookLib { /* private fields */ }Expand description
The cookbook lib, holding the shared recipe store the ops read.
Implementations§
Source§impl CookbookLib
impl CookbookLib
Sourcepub fn new(store: RecipeStore) -> Self
pub fn new(store: RecipeStore) -> Self
Build the lib over an already-populated recipe store.
Sourcepub fn store(&self) -> Arc<Mutex<RecipeStore>>
pub fn store(&self) -> Arc<Mutex<RecipeStore>>
The shared store handle (for the server to keep populating, if needed).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CookbookLib
impl RefUnwindSafe for CookbookLib
impl Send for CookbookLib
impl Sync for CookbookLib
impl Unpin for CookbookLib
impl UnsafeUnpin for CookbookLib
impl UnwindSafe for CookbookLib
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