pub struct PeopleIntelligence { /* private fields */ }Expand description
Background tasks for people intelligence:
- Upcoming date reminders
- Stale fact pruning
- Reconnect suggestions
Implementations§
Source§impl PeopleIntelligence
impl PeopleIntelligence
pub fn new( state: Arc<dyn PeopleStore>, config: PeopleIntelligenceConfig, ) -> Self
Sourcepub async fn run_daily_checks(&self)
pub async fn run_daily_checks(&self)
Prune stale facts and log upcoming dates and reconnect suggestions. The host decides whether people intelligence is enabled.
Auto Trait Implementations§
impl !RefUnwindSafe for PeopleIntelligence
impl !UnwindSafe for PeopleIntelligence
impl Forget for PeopleIntelligence
impl Freeze for PeopleIntelligencewhere
*const ArcInner<dyn PeopleStore> is !null: Freeze,
PhantomData<ArcInner<dyn PeopleStore>>: Freeze,
impl Move for PeopleIntelligence
impl Send for PeopleIntelligence
impl Sync for PeopleIntelligence
impl Unpin for PeopleIntelligence
impl UnsafeUnpin for PeopleIntelligencewhere
*const ArcInner<dyn PeopleStore> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn PeopleStore>>: UnsafeUnpin,
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