pub struct LashCore { /* private fields */ }Implementations§
Source§impl LashCore
impl LashCore
pub fn builder() -> LashCoreBuilder
Sourcepub fn standard_builder() -> LashCoreBuilder
pub fn standard_builder() -> LashCoreBuilder
Sugar entry point: a LashCoreBuilder pre-seeded with the standard
protocol plugin and the default runtime plugin stack.
pub fn session(&self, session_id: impl Into<String>) -> SessionBuilder
Sourcepub async fn resume(&self, parked: ParkedSession) -> Result<LashSession>
pub async fn resume(&self, parked: ParkedSession) -> Result<LashSession>
Rebuild a live session from a ParkedSession
handle produced by LashSession::park.
Resume reloads the flushed state from the parked store (honoring this
core’s residency), reinstalls this core’s plugin configuration and work
drivers, and returns a ready LashSession. The parked store instance
is reused directly, so the transcript the session flushed at park time is
visible again after resume.
This restores the core-level plugin stack. Session-specific plugins added
per open via SessionBuilder::plugin are not re-applied here; parking
is the round-trip for the core’s own configuration.
Sourcepub fn flush_trace_sink(&self) -> Result<()>
pub fn flush_trace_sink(&self) -> Result<()>
Flush this core’s configured trace sink, if any.
Hosts that hand lash a trace sink via
LashCoreBuilder::trace_sink already hold their own Arc and can
flush it directly; this is the equivalent lever for hosts that did not
retain the handle. It flushes the core’s copy — for a
JsonlTraceSink that fsyncs the file, and
for an OTel sink it is a no-op (the host still owns provider flush; see
the tracing docs). Call it before process exit alongside the host’s own
exporter/provider shutdown.