pub struct AsgEffectStore<'a> {
pub repo: &'a Repository,
pub fts: Option<&'a SearchFtsDb>,
}Fields§
§repo: &'a Repository§fts: Option<&'a SearchFtsDb>Borrowed FTS connection from the owning Engine. When Some,
enables the SQLite write-through cache without a per-call
Connection::open.
Implementations§
Source§impl<'a> AsgEffectStore<'a>
impl<'a> AsgEffectStore<'a>
pub fn new(repo: &'a Repository) -> Self
Sourcepub fn from_engine(engine: &'a Engine) -> Self
pub fn from_engine(engine: &'a Engine) -> Self
Convenience: borrow the FTS connection already open in engine.
Trait Implementations§
Source§impl<'a> EffectStore for AsgEffectStore<'a>
impl<'a> EffectStore for AsgEffectStore<'a>
fn get_effects( &self, ref_name: &str, symbol_id: &str, ) -> Result<Option<EffectDecl>>
fn put_effects( &self, ref_name: &str, symbol_id: &str, decl: &EffectDecl, agent_id: &str, ) -> Result<()>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for AsgEffectStore<'a>
impl<'a> !Send for AsgEffectStore<'a>
impl<'a> !Sync for AsgEffectStore<'a>
impl<'a> !UnwindSafe for AsgEffectStore<'a>
impl<'a> Freeze for AsgEffectStore<'a>
impl<'a> Unpin for AsgEffectStore<'a>
impl<'a> UnsafeUnpin for AsgEffectStore<'a>
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