pub struct AdapterContext {
pub session_id: String,
pub started_at_unix_ms: i64,
pub cwd: PathBuf,
pub command: Vec<String>,
pub blobs: Arc<BlobStore>,
pub stop: Arc<AtomicBool>,
pub projects_dir: Option<PathBuf>,
}Expand description
Context handed to an adapter when it is spawned.
Fields§
§session_id: StringOwning session id (full UUID string).
started_at_unix_ms: i64Session start as a unix-ms UTC timestamp; ts_ms is relative to this.
cwd: PathBufSession working directory — used to locate/verify the structured log.
command: Vec<String>Full command argv (used for detection and the fallback scan).
blobs: Arc<BlobStore>Blob store for >256 KiB spillover.
stop: Arc<AtomicBool>Stop flag: set by the recorder when the child has exited.
projects_dir: Option<PathBuf>Override for the Claude projects directory (None → resolve from HOME).
Tests set this to a temp dir so the adapter never touches the real home and
avoids HOME env races across parallel tests; production passes None.
Trait Implementations§
Source§impl Clone for AdapterContext
impl Clone for AdapterContext
Source§fn clone(&self) -> AdapterContext
fn clone(&self) -> AdapterContext
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 moreAuto Trait Implementations§
impl Freeze for AdapterContext
impl RefUnwindSafe for AdapterContext
impl Send for AdapterContext
impl Sync for AdapterContext
impl Unpin for AdapterContext
impl UnsafeUnpin for AdapterContext
impl UnwindSafe for AdapterContext
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