pub struct SessionRecorderConfig {
pub include_streaming_events: bool,
pub before_task: Option<BeforeTaskFn>,
pub after_task: Option<AfterTaskFn>,
}Expand description
Configuration for SessionRecorder.
Fields§
§include_streaming_events: boolStore MessageUpdate (streaming delta) events in LoopRecord::events.
Default: false. Streaming deltas are 100–1 000× more numerous than
final messages and are not needed for replay or branching. Enable only
for debugging or playback use cases.
before_task: Option<BeforeTaskFn>Session-level callback: fires when a new session is first created (G2).
after_task: Option<AfterTaskFn>Session-level callback: fires when a session is finalized (G2).
Trait Implementations§
Source§impl Clone for SessionRecorderConfig
impl Clone for SessionRecorderConfig
Source§fn clone(&self) -> SessionRecorderConfig
fn clone(&self) -> SessionRecorderConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionRecorderConfig
impl Debug for SessionRecorderConfig
Source§impl Default for SessionRecorderConfig
impl Default for SessionRecorderConfig
Source§fn default() -> SessionRecorderConfig
fn default() -> SessionRecorderConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SessionRecorderConfig
impl !RefUnwindSafe for SessionRecorderConfig
impl Send for SessionRecorderConfig
impl Sync for SessionRecorderConfig
impl Unpin for SessionRecorderConfig
impl UnsafeUnpin for SessionRecorderConfig
impl !UnwindSafe for SessionRecorderConfig
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