pub struct DataStoreSession { /* private fields */ }Implementations§
Source§impl DataStoreSession
impl DataStoreSession
pub fn new( runtime: DataStoreRuntime, store: StoreSessionConnection, lake: Connection, ) -> Self
pub fn observations(&self) -> &SessionObservations
Sourcepub fn authenticated_actor(&self) -> Option<&str>
pub fn authenticated_actor(&self) -> Option<&str>
The database principal admitted by the retained OAuth capability. Runtime-login subjects and caller-supplied actors are not substitutes.
pub fn current_study(&self) -> Option<&(ObjectRef, String)>
pub fn set_current_study(&mut self, study: Option<(ObjectRef, String)>)
pub fn with_observations(self, observations: SessionObservations) -> Self
pub fn with_scratch_attempt(self, attempt: Option<ScratchAttempt>) -> Self
Sourcepub fn with_dataset_executor(self, executor: Arc<DatasetExecutor>) -> Self
pub fn with_dataset_executor(self, executor: Arc<DatasetExecutor>) -> Self
Supplies executor exclusion obtained from the configured Lake scratch capability. Unconfigured direct callers cannot materialize Datasets.
Sourcepub fn has_operation_recovery(&self) -> bool
pub fn has_operation_recovery(&self) -> bool
Whether configured opening established the operation storage/recovery capability.
Sourcepub fn reconcile_dataset_attempts(&mut self) -> Result<(), AppError>
pub fn reconcile_dataset_attempts(&mut self) -> Result<(), AppError>
Retry known stopped attempts with the capability resolved for this Session. It cannot reopen user authority or admit output.
Sourcepub fn reconcile_disclosures(&mut self) -> Result<(), AppError>
pub fn reconcile_disclosures(&mut self) -> Result<(), AppError>
Recovery owns no login credential and never resumes content delivery. One opportunistic pass is bounded so older evidence cannot consume a newly authorized Session’s admission deadline. Unprocessed receipts stay durable for a later pass; new disclosures project their own evidence.
Sourcepub fn scratch_attempt(&self) -> Option<&ScratchAttempt>
pub fn scratch_attempt(&self) -> Option<&ScratchAttempt>
Returns the trusted scratch attempt retained by this live Session.
The returned capability is runtime-internal and its restricted path must never be serialized or projected to a client.