pub struct HistorySearchOutcome {Show 13 fields
pub hits: Vec<HistorySearchHit>,
pub sessions_scanned: u32,
pub total_sessions: u32,
pub truncated: bool,
pub complete: bool,
pub incomplete_reasons: Vec<&'static str>,
pub sessions_skipped: u32,
pub sessions_unreadable: Vec<UnreadableSession>,
pub sessions_partly_read: Vec<UnreadableSession>,
pub discovery_errors: Vec<String>,
pub ledger_sessions: u32,
pub record_only_sessions: u32,
pub inferred_sessions_excluded: u32,
}Expand description
Result of a bounded search.
Fields§
§hits: Vec<HistorySearchHit>§sessions_scanned: u32Sessions actually opened and read.
total_sessions: u32Candidates in the caller’s window, counted before max_sessions.
truncated: boolTrue when the scan stopped on limit rather than exhausting every
candidate — see search_sessions’ doc comment for why this must never
be conflated with “no matches”.
complete: boolTrue only when every candidate was read to the end: nothing cut by
max_sessions, nothing unreadable, no hit limit reached. An empty
hits is evidence that something did not happen only when this is
true; otherwise the answer is “unknown”, and incomplete_reasons
says why.
incomplete_reasons: Vec<&'static str>"hit_limit", "max_sessions", "unreadable_sessions",
"unreadable_records", "discovery_errors".
sessions_skipped: u32Candidates max_sessions left unopened.
sessions_unreadable: Vec<UnreadableSession>Candidates that could not be read, and why.
sessions_partly_read: Vec<UnreadableSession>Candidates searched, but with records that could not be read.
discovery_errors: Vec<String>What the index refresh behind this search couldn’t read. A session there may be missing from the candidates.
ledger_sessions: u32Sessions the agent’s own record or segment log names.
record_only_sessions: u32Of those, sessions whose provider transcript is gone, searched in AgentMux’s record instead.
inferred_sessions_excluded: u32Sessions found only by working directory or account and left out,
because the agent’s own record doesn’t name them. include_inferred
searches them too.
Implementations§
Source§impl HistorySearchOutcome
impl HistorySearchOutcome
Sourcepub fn add_discovery_errors(&mut self, problems: Vec<String>)
pub fn add_discovery_errors(&mut self, problems: Vec<String>)
Record that the snapshot this search read couldn’t see everything.
Trait Implementations§
Source§impl Clone for HistorySearchOutcome
impl Clone for HistorySearchOutcome
Source§fn clone(&self) -> HistorySearchOutcome
fn clone(&self) -> HistorySearchOutcome
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HistorySearchOutcome
impl Debug for HistorySearchOutcome
Auto Trait Implementations§
impl Freeze for HistorySearchOutcome
impl RefUnwindSafe for HistorySearchOutcome
impl Send for HistorySearchOutcome
impl Sync for HistorySearchOutcome
impl Unpin for HistorySearchOutcome
impl UnsafeUnpin for HistorySearchOutcome
impl UnwindSafe for HistorySearchOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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> ⓘ
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