pub struct SessionStoreTranscriptSource { /* private fields */ }Expand description
Reads the persistent session store (SessionStore::load, the same
surface the console history uses). The transcript is durable and
positionally indexed, and survives member teardown/retire/reset — which
is what makes the detached reset-boundary distillation possible.
Implementations§
Source§impl SessionStoreTranscriptSource
impl SessionStoreTranscriptSource
pub fn new(store: Arc<dyn SessionStore>) -> Self
Trait Implementations§
Source§impl TranscriptSource for SessionStoreTranscriptSource
impl TranscriptSource for SessionStoreTranscriptSource
Source§fn read<'life0, 'life1, 'async_trait>(
&'life0 self,
session_key: &'life1 str,
from_index: u64,
) -> Pin<Box<dyn Future<Output = Result<Option<TranscriptSlice>, DistillerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn read<'life0, 'life1, 'async_trait>(
&'life0 self,
session_key: &'life1 str,
from_index: u64,
) -> Pin<Box<dyn Future<Output = Result<Option<TranscriptSlice>, DistillerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Messages from
from_index to the current end of the persisted
transcript; None when the session does not exist in the store.Auto Trait Implementations§
impl !RefUnwindSafe for SessionStoreTranscriptSource
impl !UnwindSafe for SessionStoreTranscriptSource
impl Freeze for SessionStoreTranscriptSource
impl Send for SessionStoreTranscriptSource
impl Sync for SessionStoreTranscriptSource
impl Unpin for SessionStoreTranscriptSource
impl UnsafeUnpin for SessionStoreTranscriptSource
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> CoreExecutorTurnFinalizationGuard for Twhere
T: Send,
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