pub struct ReadAdmission<'a> {
pub graph: &'a Graph,
pub snapshot_ts: u64,
pub schema: &'a SchemaSnapshot,
pub request: ExecRequest<'a>,
pub cancel: Option<&'a CancelToken>,
pub ontology_document: Option<&'a str>,
}Expand description
A read admitted at a caller-pinned timestamp: the graph, the pinned
snapshot_ts, and the schema captured together with that pin under the
publication read guard, plus the request to run and its optional
cooperative cancellation token (ADR-0111; None is never cancelled).
Fields§
§graph: &'a Graph§snapshot_ts: u64§schema: &'a SchemaSnapshot§request: ExecRequest<'a>§cancel: Option<&'a CancelToken>§ontology_document: Option<&'a str>The store’s ontology document (verbatim) captured at admission
(ADR-0121 §3, ADR-0227): attached to the read view like cancel
and read by db.ontology.get / db.ontology.apply; None when
the store holds no ontology.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ReadAdmission<'a>
impl<'a> !Send for ReadAdmission<'a>
impl<'a> !Sync for ReadAdmission<'a>
impl<'a> !UnwindSafe for ReadAdmission<'a>
impl<'a> Forget for ReadAdmission<'a>
impl<'a> Freeze for ReadAdmission<'a>where
&'a Graph: Freeze,
&'a SchemaSnapshot: Freeze,
&'a LogicalPlan: Freeze,
&'a BTreeMap<String, Value>: Freeze,
&'a str: Freeze,
&'a dyn BatchCommit: Freeze,
&'a dyn PlanMetricsSink: Freeze,
&'a CancelToken: Freeze,
impl<'a> Move for ReadAdmission<'a>
impl<'a> Unpin for ReadAdmission<'a>where
&'a Graph: Unpin,
&'a SchemaSnapshot: Unpin,
&'a LogicalPlan: Unpin,
&'a BTreeMap<String, Value>: Unpin,
&'a str: Unpin,
&'a dyn BatchCommit: Unpin,
&'a dyn PlanMetricsSink: Unpin,
&'a CancelToken: Unpin,
impl<'a> UnsafeUnpin for ReadAdmission<'a>where
&'a Graph: UnsafeUnpin,
&'a SchemaSnapshot: UnsafeUnpin,
&'a LogicalPlan: UnsafeUnpin,
&'a BTreeMap<String, Value>: UnsafeUnpin,
&'a str: UnsafeUnpin,
&'a dyn BatchCommit: UnsafeUnpin,
&'a dyn PlanMetricsSink: UnsafeUnpin,
&'a CancelToken: UnsafeUnpin,
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