pub struct SemanticEngine { /* private fields */ }Implementations§
Source§impl SemanticEngine
impl SemanticEngine
pub fn new(store: Arc<Store>, data_dir: &Path, config: SemanticConfig) -> Self
pub fn apply_config(&mut self, config: SemanticConfig)
pub async fn status_snapshot(&self) -> Result<SemanticStatusSnapshot>
pub async fn install_profile( &mut self, _profile: SemanticProfile, ) -> Result<SemanticProfileRecord>
pub async fn use_profile( &mut self, _profile: SemanticProfile, ) -> Result<SemanticProfileRecord>
pub async fn reindex_active(&mut self) -> Result<SemanticProfileRecord>
pub async fn reindex_messages( &mut self, _message_ids: &[MessageId], ) -> Result<()>
pub async fn search( &mut self, _query: &str, _limit: usize, ) -> Result<Vec<SemanticHit>>
Auto Trait Implementations§
impl Freeze for SemanticEngine
impl !RefUnwindSafe for SemanticEngine
impl Send for SemanticEngine
impl Sync for SemanticEngine
impl Unpin for SemanticEngine
impl UnsafeUnpin for SemanticEngine
impl !UnwindSafe for SemanticEngine
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more