pub struct Inventory { /* private fields */ }Expand description
Evidence for every conversation, built once per store revision.
Implementations§
Source§impl Inventory
impl Inventory
Sourcepub fn needs_owner(&self) -> HashSet<&str>
pub fn needs_owner(&self) -> HashSet<&str>
Chats with an unresolved owner decision, whatever their open state.
Sourcepub fn collect(home: &Path, tasks: &[Task], questions: &[Question]) -> Self
pub fn collect(home: &Path, tasks: &[Task], questions: &[Question]) -> Self
Read-only gather. A failure of one store degrades to explicit unknown rather than to an empty (healthy-looking) answer.
Sourcepub fn mark_unreadable(&mut self)
pub fn mark_unreadable(&mut self)
Mark incomplete source inventories without treating absence as idle.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Inventory
impl Freeze for Inventory
impl Move for Inventory
impl RefUnwindSafe for Inventory
impl Send for Inventory
impl Sync for Inventory
impl Unpin for Inventory
impl UnsafeUnpin for Inventorywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<(String, Evidence)>: UnsafeUnpin,
PhantomData<(String, ())>: UnsafeUnpin,
impl UnwindSafe for Inventory
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