pub struct SessionProjection { /* private fields */ }Expand description
A Projection that folds the agent vocabulary for a single namespace
into a SessionState — the session transcript and status. Events from
other namespaces are skipped.
Implementations§
Trait Implementations§
Source§impl NamespaceScoped for SessionProjection
impl NamespaceScoped for SessionProjection
Source§impl Projection for SessionProjection
impl Projection for SessionProjection
Source§type Body = EventBody
type Body = EventBody
The payload type this projection folds. Ties the projection to a
Salamander<B> with the same B: you can only build a projection
from a log whose events carry the payload it knows how to apply.
Expressed as an associated type (not a trait parameter) so the
generic replay helpers below read as P: Projection with no extra
B to thread through.Source§type State = SessionState
type State = SessionState
The derived state this projection maintains.
Auto Trait Implementations§
impl Freeze for SessionProjection
impl RefUnwindSafe for SessionProjection
impl Send for SessionProjection
impl Sync for SessionProjection
impl Unpin for SessionProjection
impl UnsafeUnpin for SessionProjection
impl UnwindSafe for SessionProjection
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