Skip to main content

PartitionService

Struct PartitionService 

Source
pub struct PartitionService { /* private fields */ }
Expand description

Hexastore service over one axis-local storage brick.

Implementations§

Source§

impl PartitionService

Source

pub fn new(storage: Storage) -> Self

Wrap an already-open storage brick with an in-memory stats store.

Source

pub fn new_with_stats(storage: Storage, stats: ShardStats) -> Self

Wrap storage with an existing ShardStats holder.

Source

pub fn memory(axis: PartitionAxis) -> Self

In-memory partition for tests and lightweight local runs.

Source

pub fn storage(&self) -> &Storage

The shared storage brick (in-process clients / tests).

Source

pub fn warm_block_cache( &self, fill_fraction: f64, ) -> Result<WarmBlockCacheStats, PartitionError>

Warm this partition’s block cache (see Storage::warm_block_cache); a no-op on the memory backend. Called from the partition process when WARATAH_WARM_CACHE is set.

Source

pub fn stats_handle(&self) -> &Mutex<ShardStats>

The shard stats holder (in-process clients / tests).

Source

pub fn open_with_backend( kind: StorageBackendKind, path: impl AsRef<Path>, axis: PartitionAxis, ) -> Result<Self, PartitionError>

Open with an explicit backend (dev mode selects memory for speed).

Source

pub fn open_rocksdb( path: impl AsRef<Path>, axis: PartitionAxis, options: RocksDbOpenOptions, ) -> Result<Self, PartitionError>

Open a RocksDB partition with optional stats collector and auto-compaction.

Source

pub fn axis(&self) -> PartitionAxis

Axis this process owns.

Source

pub fn with_trace(self, enabled: bool) -> Self

Enable (--trace) stderr timing lines for streamed scans.

Source

pub fn with_identity(self, identity: NodeIdentity) -> Self

Set the identity Describe reports (listen address, data dir, node id).

Source

pub fn with_warm_state(self, warm: Arc<WarmState>) -> Self

Hand in the startup cache-warm tracker. The Health RPC reports warm_ready = false (plus the pending walk names) until every tracked walk completes or outlives the tracker’s max wait.

Source

pub fn identity(&self) -> &NodeIdentity

Identity Describe reports.

Source

pub fn apply_versions( &self, asserted_axis: Option<PartitionAxis>, versions: &[QuadVersion], ) -> Result<u64, PartitionError>

Apply versioned records to both axis-local indexes and observe stats.

asserted_axis of None skips the ownership check (the caller did not name an axis); a named axis other than Self::axis is rejected.

Index keys for a multi-quad chunk are encoded before taking the storage write lock. Catalog prefix seeks (S axis) run under that lock, then one RocksDB WriteBatch commits hexastore puts and catalog puts together. Chunks are at most WRITE_BATCH_MAX_QUADS.

Source

pub fn list_named_graphs( &self, snapshot: SnapshotId, ) -> Result<Vec<EncodedTerm>, PartitionError>

S-axis named-graph catalog at snapshot (empty graphs included).

Source

pub fn add_named_graph( &self, graph: &EncodedTerm, commit_ts: CommitTs, ) -> Result<(), PartitionError>

Insert an empty named graph into the S-axis catalog.

Source

pub fn scan( &self, permutation: Option<IndexPermutation>, pattern: &EncodedTriplePattern, snapshot: SnapshotId, limit: u64, ) -> Result<Vec<EncodedQuad>, PartitionError>

Scan a pattern as of snapshot, returning encoded columns only.

permutation of None lets the brick pick its longest-prefix axis-local index; limit of 0 is unlimited.

When filter_slot + filter_terms are set (Phase 9b broadcast), each filter term is bound into that slot and scanned; results are concatenated.

Source

pub fn scan_runs_on_caller( &self, permutation: Option<IndexPermutation>, pattern: &EncodedTriplePattern, filter_slot: Option<PatternSlot>, filter_terms: &[EncodedTerm], ) -> bool

Scan with an optional broadcast allow-list on one unbound slot.

start_after is exclusive. A single prefix scan resumes after that logical quad. With filter_terms, results are concatenated in encoded tight-prefix order (not caller allow-list order): terms whose prefix sorts before the cursor’s slot value are skipped, the matching term’s prefix resumes at start_after, and later terms start from the beginning of their prefix. limit counts visible matching Puts after MVCC collapse. filter_terms order does not matter; the same set plus start_after is enough to resume. One filter term still uses a tight prefix iterator. Two or more terms share one iterator and Seek to each prefix when the filter slot extends the index prefix; otherwise each term is bound and scanned separately. graph_filter_terms is a residual G-slot block-list (allow = false, the default) or allow-list (allow = true). Empty block-list blocks nothing (pattern.graph_name still applies). Empty allow-list allows nothing.

Scan-dispatch gate: may this scan run on the calling thread?

Used by every gated fetch shape — the unary scan_pattern round trip, the streaming drain (scan_pattern_stream_frames), CountPattern (a count drains the same prefix a scan does), and predicate-keyed domain scans (Self::domain_scan_runs_on_caller). True when the partition’s stats upper bound (ShardStats::exact_scan_rows) puts the pattern at or below scan_dispatch_row_threshold rows AND the permutation-aware slice rule is satisfied: the walked key range must be narrowed past the leading block — on PSOG/POSG the slot after the predicate, on TSG the class, on SPOG/SOPG/OPSG the leading subject or object — each bound, or covered by a non-empty sub-threshold allow-list on that slot; a request with no explicit permutation dispatches. Paged unary requests follow the same rule (a limit > 0 page bound only at the predicate dispatches). The rule keeps delete churn in a whole leading block (version keys far beyond the net-row estimate) off the calling worker. Phase-1 estimate sources (exact maps only): a bound named predicate’s row count, and — for rdf:type — the class counts for a bound named class or an object broadcast allow-list (summed with early exit at the threshold). Patterns without a bound named predicate have no phase-1 basis and always dispatch.

Dispatch-on-doubt: the gate returns false (dispatch) when the sealed SST profile has not been loaded or is invalidated (SstInvalidationFlags::sealed_stale — an empty sealed layer plus a live write would otherwise read as an observed zero), when the stats mutex is contended or poisoned (try_lock — the write path holds that mutex across whole write chunks, and waiting would put it back on the latency path this gate exists to shorten), or when any allow-list term is not a named node (it could match rows the named-class map never counts).

The gate is advisory for the thread choice only: the caller executes the same scan_filtered either way and the rows are identical.

Source

pub fn domain_scan_runs_on_caller( &self, permutation: IndexPermutation, constraints: &[EncodedTerm], ) -> bool

Domain-scan gate: may this domain scan run on the calling thread?

Same dispatch-on-doubt rules as Self::scan_runs_on_caller (threshold disabled, sealed SST profile stale, stats mutex contended or poisoned → dispatch), applied to the domain-scan request shape: constraints are the slot-0 terms of permutation.

Only predicate-keyed domain scans (Posg, the PredicateDomain rewrite) have an exact estimate basis: the per-predicate row counts, summed over the constraint list with early exit strictly past the threshold (distinct heads under a constraint walk at most that predicate’s rows). A constraint that is not a named node has no exact-map entry and dispatches. Subject- and object-keyed permutations have no per-term exact maps at all — no basis, always dispatch. Advisory for the thread choice only; both branches return identical hits.

Source

pub fn scan_filtered( &self, permutation: Option<IndexPermutation>, pattern: &EncodedTriplePattern, snapshot: SnapshotId, limit: u64, filter_slot: Option<PatternSlot>, filter_terms: &[EncodedTerm], start_after: Option<&EncodedQuad>, graph_filter_terms: &[EncodedTerm], graph_filter_allow: bool, merge_default_graph: bool, iri_only: IriOnlyMask, verdict_wanted: bool, ) -> Result<(Vec<EncodedQuad>, ScanExhaustion), PartitionError>

merge_default_graph is the SPARQL default-graph RDF merge: after graph membership, keep the first visible S/P/O, skip later named graphs of that triple (G is last in every index), and rewrite result G to EncodedTerm::DefaultGraph. Exclusive start_after then means “skip this whole triple”, not one logical quad. GRAPH scans must leave this false so graph identity stays on the wire.

This is the decoded reference path: each matched row is decoded from its raw key and collected into a Vec<EncodedQuad>, with the default-graph merge applied after the decode. The RPC page walk is Self::scan_filtered_packed; both share Self::walk_filtered_rows’s branch selection and differ only in the per-row sink. Returns the rows plus the walk’s own ScanExhaustion verdict.

Source

pub fn scan_filtered_packed( &self, permutation: Option<IndexPermutation>, pattern: &EncodedTriplePattern, snapshot: SnapshotId, limit: u64, filter_slot: Option<PatternSlot>, filter_terms: &[EncodedTerm], start_after: Option<&EncodedQuad>, graph_filter_terms: &[EncodedTerm], graph_filter_allow: bool, merge_default_graph: bool, iri_only: IriOnlyMask, comparisons: &[SlotComparison], omitted: u8, verdict_wanted: bool, ) -> Result<ScanPatternResponse, PartitionError>

The unary page walk with the packed sink: matched rows go into a [FramePacker] with the request’s omitted_slots mask applied during the copy — the same push_row the stream drain calls — and the page returns ONE frame whose every field is a zero-copy slice of the packed buffer. No EncodedTerm is ever constructed on this path: the mask rides at the byte-copy layer, exactly as on the stream, and the Tsg predicate and the default-graph merge are applied by wire_quad at slice time instead of inside storage.

Paging is the decoded path’s, exactly: limit counts matched rows after MVCC collapse and filtering, start_after is exclusive, and the branch selection is Self::scan_filtered’s. One page per response; the stream’s SCAN_STREAM_FRAME_ROWS flush threshold does not apply.

Source

pub fn scan_filtered_streaming( &self, permutation: Option<IndexPermutation>, pattern: &EncodedTriplePattern, snapshot: SnapshotId, filter_slot: Option<PatternSlot>, filter_terms: &[EncodedTerm], start_after: Option<&EncodedQuad>, graph_filter_terms: &[EncodedTerm], graph_filter_allow: bool, merge_default_graph: bool, iri_only: IriOnlyMask, comparisons: &[SlotComparison], emit: impl FnMut(&KeyRow<'_>) -> bool, ) -> Result<ScanExhaustion, PartitionError>

Stream every visible matching row to emit in ONE continuous index walk — no storage-side paging, no lock held (reads are lock-free; see Self::storage). emit receives a raw KeyRow (key-buffer slices, no decoded terms) and returns false to stop the walk early (limit satisfied / consumer gone); the return value is the walk’s ScanExhaustion verdict — a terminal value (ExhaustedFilterTerms/ExhaustedScan) when the walk ran to completion, Limited when emit stopped it.

Plain patterns (the eager drain’s hot path) walk a single iterator through the storage-side RowMatcher: residual G membership, the exclusive start_after whole-triple cursor, and merge_default_graph collapse run per row on raw key bytes — semantics match unary paging row for row, and no EncodedTerm is ever constructed. Broadcast filter shapes run the same raw row walks (multi-seek over the allow-listed tight prefixes, or one bound-pattern walk per term) — every branch emits raw KeyRow slices and constructs no terms on any branch.

Source

pub fn scan_pattern_stream_frames( &self, permutation: Option<IndexPermutation>, pattern: EncodedTriplePattern, snapshot: SnapshotId, limit: u64, filter_slot: Option<PatternSlot>, filter_terms: Vec<EncodedTerm>, start_after: Option<EncodedQuad>, graph_filter_terms: Vec<EncodedTerm>, graph_filter_allow: bool, merge_default_graph: bool, iri_only: IriOnlyMask, comparisons: Vec<SlotComparison>, omitted: u8, verdict_wanted: bool, ) -> Pin<Box<dyn Stream<Item = Result<ScanPatternResponse, Status>> + Send>>

Frame stream for a decoded ScanPatternStream request — the transport behind the tonic handler, shared with the in-process clients so both deployments run the identical streaming drain.

The walk runs on ONE task for the whole prefix (scan_filtered_streaming), packing rows into SCAN_STREAM_FRAME_ROWS frames; the stream closes on prefix exhaustion (exhausted), after the request’s limit rows (limit), or when the consumer drops it (client-dropped).

Dispatch: the exact-stats gate (Self::scan_runs_on_caller, SCAN_DISPATCH_ROW_THRESHOLD) picks the thread. A drain estimated at or below the threshold runs the whole walk on the calling worker and returns the frames as an already-collected stream — a µs-scale seek-to-EOF must not pay the blocking-pool wake (its CFS wakeup delay is the measured ~600 µs small-query stall). Larger or unestimable drains get the blocking task plus bounded channel below, unchanged. Frames, ordering, and error items are identical either way.

Source

pub fn scan_domain( &self, permutation: IndexPermutation, constraints: &[EncodedTerm], snapshot: SnapshotId, limit: u64, start_after_constraint: Option<&EncodedTerm>, start_after_term: Option<&EncodedTerm>, graph_name: Option<&EncodedTerm>, graph_filter_terms: &[EncodedTerm], graph_filter_allow: bool, iri_only_head: bool, ) -> Result<Vec<DomainScanHit>, PartitionError>

Domain scan: distinct slot-1 head terms under each slot-0 constraint of permutation.

Source

pub fn scan_domain_counts( &self, permutation: IndexPermutation, constraints: &[EncodedTerm], snapshot: SnapshotId, limit: u64, start_after_constraint: Option<&EncodedTerm>, start_after_term: Option<&EncodedTerm>, graph_name: Option<&EncodedTerm>, graph_filter_terms: &[EncodedTerm], graph_filter_allow: bool, iri_only_head: bool, merge_default_graph: bool, mode: DomainCountMode, ) -> Result<Vec<DomainScanCountHit>, PartitionError>

Domain count scan: run lengths of slot-1 head terms under each slot-0 constraint of permutation, per mode. DistinctGraphs is incompatible with merge_default_graph (merge collapses G) and is rejected as invalid argument.

Source

pub fn scan_axis_head( &self, permutation: IndexPermutation, snapshot: SnapshotId, limit: u64, start_after_term: Option<&EncodedTerm>, graph_name: Option<&EncodedTerm>, graph_filter_terms: &[EncodedTerm], graph_filter_allow: bool, iri_only_head: bool, head_prefixes: &[Vec<u8>], ) -> Result<Vec<EncodedTerm>, PartitionError>

Axis head scan: distinct slot-0 head terms of the whole permutation CF. head_prefixes are opaque seek-union byte ranges (empty = unfiltered); the partition never interprets them.

Source

pub fn axis_head_max_commit_ts( &self, permutation: IndexPermutation, head_prefixes: &[Vec<u8>], ) -> Result<u64, PartitionError>

Max commit_ts among the versioned keys whose slot-0 head term falls under head_prefixes (geo upgrade stage 1: the swap-timestamp bound, derived from the walked data itself — a freshly opened process’s counter is 0 and says nothing about rows written by earlier processes, and the wall clock may have drifted since they landed).

Source

pub fn count_axis_heads( &self, permutation: IndexPermutation, snapshot: SnapshotId, graph_name: Option<&EncodedTerm>, graph_filter_terms: &[EncodedTerm], graph_filter_allow: bool, iri_only_head: bool, ) -> Result<u64, PartitionError>

Axis head count, TOTAL mode: distinct slot-0 head terms of the whole permutation CF.

Source

pub fn scan_axis_head_counts( &self, permutation: IndexPermutation, snapshot: SnapshotId, limit: u64, start_after_term: Option<&EncodedTerm>, graph_name: Option<&EncodedTerm>, graph_filter_terms: &[EncodedTerm], graph_filter_allow: bool, iri_only_head: bool, ) -> Result<Vec<AxisHeadCountHit>, PartitionError>

Axis head count, PER_HEAD mode: per-head distinct slot-1 counts.

Source

pub fn count_filtered( &self, permutation: Option<IndexPermutation>, pattern: &EncodedTriplePattern, snapshot: SnapshotId, limit: u64, filter_slot: Option<PatternSlot>, filter_terms: &[EncodedTerm], graph_filter_terms: &[EncodedTerm], graph_filter_allow: bool, merge_default_graph: bool, ) -> Result<u64, PartitionError>

Count matching quads as of snapshot without returning rows.

Same pattern / permutation / broadcast-filter rules as Self::scan_filtered. limit of 0 is unlimited; a positive limit stops once that many matches have been counted.

Source

pub fn count_filtered_on_caller( &self, permutation: Option<IndexPermutation>, pattern: &EncodedTriplePattern, snapshot: SnapshotId, limit: u64, filter_slot: Option<PatternSlot>, filter_terms: &[EncodedTerm], graph_filter_terms: &[EncodedTerm], graph_filter_allow: bool, merge_default_graph: bool, ) -> Result<u64, PartitionError>

Self::count_filtered with the parallel count walk force-disabled: the dispatch gate’s on-caller path serves counts its exact stats judge µs-scale, where the worker-pool wake would outweigh the walk. The storage-side WARATAH_COUNT_WALKS knob stays authoritative for the dispatched path.

Source

pub fn apply_geo(&self, puts: &[GeoIndexPut]) -> Result<u64, PartitionError>

Flush MemTables to SST files. Stats rotation is handled by the event listener. Apply geometry-index postings (O axis only; apply-only, verbatim).

The partition NEVER derives S2 cells here and never reads blobs — postings are exactly what compute sent (cell id, term bytes, MVCC metadata, optional CRS84 envelope).

Source

pub fn delete_geo_term(&self, term: &[u8]) -> Result<u64, PartitionError>

Delete every posting of one encoded geo term (O axis; rebuild).

Source

pub fn apply_replaces( &self, pairs: &[ReplacePair], commit_ts: CommitTs, ) -> Result<u64, PartitionError>

Apply replace pairs as ONE batch on this axis (the migration primitive; served by every axis).

Source

pub fn begin_geo_rebuild(&self) -> Result<Option<u64>, PartitionError>

Begin the geo index rebuild: take the rebuild lease (free, or expired-stale takeover) and wipe the whole geo_index CF. Ok(true) = this caller holds the lease and owns the walk; Ok(false) = a fresh lease is held elsewhere (wait on Describe). O axis only.

Source

pub fn renew_geo_rebuild_lease(&self) -> Result<(), PartitionError>

Refresh the held lease’s deadline (the driver calls this per batch; a driver that stalls past the deadline loses the lease to takeover).

Source

pub fn finish_geo_rebuild(&self) -> Result<u64, PartitionError>

Finish the geo index rebuild: stamp epoch = max(previous epoch number, max commit_ts observed on this partition) (equal, never +1) and release the lease. The previous-epoch floor keeps a rebuild that wrote nothing counter-visible (no orphans; postings only) in a freshly opened process from regressing the epoch to 0 over data at higher ts. Rejected unless the caller holds a fresh lease.

Validate, stamp, and release under ONE hold of the lease mutex. Releasing before the stamp opened a window where a peer’s begin_geo_rebuild could take the free lease and wipe the index BEFORE our stamp landed — a stamped epoch over a cleared index, and a peer walk re-covering a store while the finish still believed it owned the lease (same shape as the text finish). The release happens on the error paths too — a failed stamp must not pin the lease for the rest of its duration.

Source

pub fn geo_rebuild_in_progress(&self) -> bool

Whether a FRESH geo rebuild lease is held (a stale lease reports false — takeover allowed).

Source

pub fn text_index_fingerprint(&self) -> Result<Option<String>, PartitionError>

The fingerprint the index on this partition was built with, if any.

Reads the in-memory handle when open, else the sidecar; None means the partition has no text index at all.

Source

pub fn with_text_self_create(self, options: Option<TextIndexOptions>) -> Self

Configure the text config a PutTextIndex may self-create the index with when no sidecar exists (the launcher passes it for the O axis when the plugin is enabled).

Source

pub fn apply_text(&self, docs: &[TextIndexDoc]) -> Result<u64, PartitionError>

Apply text-index documents (O axis only, applied verbatim).

Called by compute BEFORE the three axis InsertQuads calls: a visible row therefore never lacks its document. The Tantivy commit and the reader reload happen here, before the acknowledgement, so a later query on this process cannot miss the document.

A fresh WIPE rebuild lease fences puts: the wiping build is about to delete every document, and a put committed in that window would be deleted before its row lands, breaking invariant A (the walk’s exclusive cursor would never re-derive the row’s document). The rejection maps to a transient status, but the standard retry budget (milliseconds) is far shorter than any wipe — in practice the insert FAILS LOUDLY and the load is rerun (documents are idempotent); C3’s document-before-row order holds again once the rebuild finishes. An ADDITIVE (live-repair) lease does not fence: it exists precisely so in-progress writes keep landing documents.

Source

pub fn text_candidates( &self, request: &TextSearchRequest, ) -> Result<Vec<Vec<u8>>, PartitionError>

Drain one text candidate request (O axis only).

Returns distinct encoded terms. NotBuilt is an error rather than an empty set: returning zero rows from an index that does not exist is the trusted-but-empty state the plugin forbids. Reads never SELF-CREATE: only a put may bring the index into existence (invariant A is about writes), and every candidate scan is plan-gated on a trusted index whose sidecar ensure_text_open can adopt.

Source

pub fn begin_text_rebuild( &self, options: &TextIndexOptions, wipe: bool, ) -> Result<Option<u64>, PartitionError>

Begin the text index rebuild: refuse a config that does not match the stored index, then take the lease (free, or expired-stale takeover) and open-or-create the directory. Ok(Some(token)) = this caller holds the lease and owns the walk; every renew / finish must carry the token, so a driver that lost its lease (expired and taken over, or a partition restart) can neither release nor stamp. Ok(None) = a fresh lease is held elsewhere.

wipe mirrors the caller’s situation, not a preference: a startup build wipes because nothing is serving, and a repair build does not because an in-progress write’s document may describe a row the walk cannot see yet. A WIPE lease fences PutTextIndex until it is released (see Self::apply_text); an additive lease does not.

Source

pub fn renew_text_rebuild_lease(&self, token: u64) -> Result<(), PartitionError>

Refresh the held text rebuild lease’s deadline. Rejected unless token identifies the current FRESH lease: an expired lease means a takeover is possible, so the stale driver must stop renewing.

Source

pub fn finish_text_rebuild( &self, token: u64, stamp: bool, ) -> Result<u64, PartitionError>

Finish the text index rebuild: release the lease, and — when stamp — stamp epoch = max commit_ts observed on this partition on the index. Rejected unless token identifies the current FRESH lease. stamp = false releases without stamping: an import that failed, or a walk that skipped unresolved lexicals, must not mark the index built; the index stays untrusted and the next start rebuilds.

Source

pub fn text_seed_sketch_frame(&self) -> Option<TextSeedSketch>

The persisted seed sketch, None when absent (not the O axis, no index, no sidecar, or undecodable). Served wire-trimmed by both the gRPC frame and the standalone in-process client.

Source

pub fn text_rebuild_in_progress(&self) -> bool

Whether a FRESH text rebuild lease is held.

Source

pub fn apply_temporal( &self, puts: &[TemporalIndexPut], ) -> Result<u64, PartitionError>

Apply temporal-index postings (O axis) and observe the Put postings into the shard’s temporal histogram (same advisory-stats overlay as the hexastore observers; deletes do not observe — the histogram is Put-only by contract).

Source

pub fn rebuild_temporal_index( &self, config: DyadicCovererConfig, ) -> Result<bool, PartitionError>

Execute the O-axis temporal index rebuild under the rebuild lock.

Ok(true) = this call ran the rebuild; Ok(false) = another rebuild is in progress (caller polls Describe). The walk: wipe the index CF, collect the per-quad-live temporal terms over the leading O permutation (a term stays when ANY referencing quad’s own-latest version is a Put — deletes are never mirrored to postings, so this walk after the wipe is the GC of dead terms), derive postings under the requested coverer config, apply them, stamp epoch = max commit_ts over temporal-carrying rows (equal, never +1 — the epoch derives from the indexed data), and leave the histogram to the observe replay that already ran through apply_temporal.

Source

pub fn temporal_candidate_frames( &self, intervals: Vec<TemporalCellInterval>, snapshot: SnapshotId, predicate: TemporalQueryPredicate, limit: u64, ) -> ReceiverStream<Result<TemporalCandidateScanResponse, Status>>

Frame stream for a decoded TemporalCandidateScan request — the transport behind the tonic handler, shared with in-process clients.

ONE blocking task drains the merged key-interval walk (skip-seek union with a fresh TemporalCandidateState) and packs distinct candidate terms into SCAN_STREAM_FRAME_ROWS frames. This RPC is never cursor-paged: a second iterator would start a new seen-set and re-emit terms under several covering nodes.

Source

pub fn geo_candidate_frames( &self, intervals: Vec<GeoCellInterval>, snapshot: SnapshotId, query_envelope: Option<GeoEnvelope>, limit: u64, ) -> ReceiverStream<Result<GeoCandidateScanResponse, Status>>

Frame stream for a decoded GeoCandidateScan request — the transport behind the tonic handler, shared with in-process clients.

ONE blocking task drains the merged cell-interval walk (skip-seek union with a fresh GeoCandidateState) and packs distinct candidate terms into SCAN_STREAM_FRAME_ROWS frames. This RPC is never cursor-paged: a second iterator would start a new seen-set and re-emit geometries under several covering cells.

Source

pub fn text_candidate_frames( &self, request: TextSearchRequest, snapshot: SnapshotId, ) -> ReceiverStream<Result<TextCandidateScanResponse, Status>>

Stream one text candidate drain in frame-sized batches.

The drain itself is a single index search (the collector dedups by term), so the frames only bound the message size; unlike the scan RPCs there is no cursor, and a second call recomputes the same set.

Source

pub fn text_subject_row_to_proto(row: &TextSubjectRow) -> TextSubjectRow

Encode one resolved row for the wire.

graph presence, not length, carries the “column requested” fact: the RDF default graph’s encoded term is zero bytes, so Some(empty) is a real graph and must not collapse to “not requested”.

Source

pub fn resolve_text_subjects( &self, request: &TextSubjectRequest, snapshot: SnapshotId, emit: &mut dyn FnMut(&[TextSubjectRow]) -> Result<bool, PartitionError>, ) -> Result<(), PartitionError>

Resolve one text subject scan: run one search for the request’s whole predicate set (a single OR over the stored predicate), walk OPSG for the matched literals at snapshot, and hand DISTINCT (subject, graph) rows to emit in pages while the walk runs.

STREAMING CONTRACT: pages leave as they are produced, so peak memory is one page plus the dedup set rather than the whole answer. emit returning false means the consumer is gone: the walk stops at the next page boundary and this returns Ok(()). An Err ends the stream after some rows may already be delivered — a consumer must treat the error as fatal and discard everything received.

The guard counts distinct rows and ERRORS when exceeded, never truncates: a dropped subject is a dropped row for text:query’s subject form, which has no residual. It also bounds the dedup set at limit + 1 entries; with limit == 0 the set is the answer size (there is no seen-set spill yet). The graph column is present only when the request asks for it; dedup then keys on (subject, graph) so a subject matched in several graphs stays distinct where the query binds the graph variable.

Source

pub fn text_subject_frames( &self, request: TextSubjectRequest, snapshot: SnapshotId, ) -> ReceiverStream<Result<TextSubjectScanResponse, Status>>

Stream one subject resolve as framed (subject, graph) pages.

The resolve sends each 8,192-row page as it is produced: one blocking walk behind a bounded frame channel. The first rows reach the consumer before the walk ends, and a cancelled consumer stops the walk at the next page boundary instead of letting it run to completion.

Source

pub fn flush_memtables(&self) -> Result<(), PartitionError>

Flush this partition’s MemTables to SSTables.

Source

pub fn shard_profile(&self) -> Result<StatsProfile, PartitionError>

Merged shard-level statistical profile (sealed ⊕ flushing ⊕ open).

Reloads live SST waratah.stats blobs only when the cache is stale. A flush-absorbed reload drops flushing, not open.

Source

pub fn compact_range(&self) -> Result<(), PartitionError>

Compact both axis-local column families (synchronous full-range compact).

Source

pub fn open_total_puts(&self) -> Result<u64, PartitionError>

Write-path (open) put count, before any SST overlay.

Source

pub fn compaction_event_count(&self) -> u64

Listener-observed compaction completions (no mutex).

Source

pub fn flush_event_count(&self) -> u64

Listener-observed flush completions (no mutex).

Source

pub fn describe(&self) -> HexastoreDescribeResponse

Identity + LSM snapshot for Describe.

Trait Implementations§

Source§

impl Clone for PartitionService

Source§

fn clone(&self) -> PartitionService

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PartitionService

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hexastore for PartitionService

Source§

fn scan_pattern_stream<'life0, 'async_trait>( &'life0 self, request: Request<ScanPatternRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Self::ScanPatternStreamStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Storage-driven drain of a prefix as continuous frames.

Unlike Self::scan_pattern (compute-driven: one request carries the exact page it needs), the partition here streams every matching row as it is walked — ONE iterator for the whole prefix, no storage-side page boundaries, no locks held — until the prefix is exhausted, the request’s limit rows have been emitted, or the consumer drops the stream. Residual G membership, merge_default_graph whole-triple cursors, and MVCC snapshot visibility match unary paging exactly (same row pipeline, per row). See Self::scan_pattern_stream_frames.

Source§

type ScanPatternStreamStream = Pin<Box<dyn Stream<Item = Result<ScanPatternResponse, Status>> + Send>>

Server streaming response type for the ScanPatternStream method.
Source§

type GeoCandidateScanStream = ReceiverStream<Result<GeoCandidateScanResponse, Status>>

Server streaming response type for the GeoCandidateScan method.
Source§

type TemporalCandidateScanStream = ReceiverStream<Result<TemporalCandidateScanResponse, Status>>

Server streaming response type for the TemporalCandidateScan method.
Source§

type TextCandidateScanStream = ReceiverStream<Result<TextCandidateScanResponse, Status>>

Server streaming response type for the TextCandidateScan method.
Source§

type TextSubjectScanStream = ReceiverStream<Result<TextSubjectScanResponse, Status>>

Server streaming response type for the TextSubjectScan method.
Source§

fn insert_quads<'life0, 'async_trait>( &'life0 self, request: Request<InsertQuadsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<InsertQuadsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn replace_quads<'life0, 'async_trait>( &'life0 self, request: Request<ReplaceQuadsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ReplaceQuadsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Atomic object-term replace (upgrade migration; see ReplaceQuadsRequest). Served by S, P, and O partitions alike.
Source§

fn scan_pattern<'life0, 'async_trait>( &'life0 self, request: Request<ScanPatternRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ScanPatternResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn count_pattern<'life0, 'async_trait>( &'life0 self, request: Request<ScanPatternRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<CountPatternResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn domain_scan<'life0, 'async_trait>( &'life0 self, request: Request<DomainScanRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<DomainScanResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn domain_scan_counts<'life0, 'async_trait>( &'life0 self, request: Request<DomainScanCountRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<DomainScanCountResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn axis_head_scan<'life0, 'async_trait>( &'life0 self, request: Request<AxisHeadScanRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<AxisHeadScanResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn axis_head_max_commit_ts<'life0, 'async_trait>( &'life0 self, request: Request<AxisHeadMaxCommitTsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<AxisHeadMaxCommitTsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Max commit_ts under head-term byte prefixes (geo upgrade stage 1).
Source§

fn axis_head_scan_counts<'life0, 'async_trait>( &'life0 self, request: Request<AxisHeadScanCountsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<AxisHeadScanCountsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn put_geo_index<'life0, 'async_trait>( &'life0 self, request: Request<PutGeoIndexRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<PutGeoIndexResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

O-axis geometry index (GeoSPARQL). Non-O partitions return UNIMPLEMENTED. Apply-only: the partition persists postings verbatim and answers GeoCandidateScan with skip-seek iteration + per-stream DISTINCT; it never computes S2 cells and never touches blobs.
Source§

fn delete_geo_term<'life0, 'async_trait>( &'life0 self, request: Request<DeleteGeoTermRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<DeleteGeoTermResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Wipe every posting of one encoded geo term (rebuild support).
Source§

fn geo_candidate_scan<'life0, 'async_trait>( &'life0 self, request: Request<GeoCandidateScanRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Self::GeoCandidateScanStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Streaming candidate drain for one merged cell-interval list. One RPC drains the full unique candidate set (see GeoCandidateScanRequest).
Source§

fn put_temporal_index<'life0, 'async_trait>( &'life0 self, request: Request<PutTemporalIndexRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<PutTemporalIndexResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

O-axis temporal index (temporal plugin). Non-O partitions return UNIMPLEMENTED. Apply-only: the partition persists postings verbatim, answers TemporalCandidateScan with skip-seek iteration + per-stream DISTINCT + the exact-interval reject; it never derives dyadic keys.
Source§

fn temporal_candidate_scan<'life0, 'async_trait>( &'life0 self, request: Request<TemporalCandidateScanRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Self::TemporalCandidateScanStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Streaming candidate drain for one merged key-interval list. One RPC drains the full unique candidate set (see TemporalCandidateScanRequest).
Source§

fn rebuild_temporal_index<'life0, 'async_trait>( &'life0 self, request: Request<RebuildTemporalIndexRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<RebuildTemporalIndexResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Rebuild the temporal index from the hexastore under the partition’s in-process lock (see RebuildTemporalIndexRequest). O axis only.
Source§

fn rebuild_geo_index<'life0, 'async_trait>( &'life0 self, _request: Request<RebuildGeoIndexRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<RebuildGeoIndexResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

O-axis geo index rebuild lease + wipe (non-O returns UNIMPLEMENTED).
Source§

fn renew_geo_rebuild_lease<'life0, 'async_trait>( &'life0 self, _request: Request<RenewGeoRebuildLeaseRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<RenewGeoRebuildLeaseResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Driver keepalive for the geo rebuild lease (O axis only).
Source§

fn finish_geo_index_rebuild<'life0, 'async_trait>( &'life0 self, _request: Request<FinishGeoIndexRebuildRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<FinishGeoIndexRebuildResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Stamp the rebuild epoch and release the lease (O axis only).
Source§

fn put_text_index<'life0, 'async_trait>( &'life0 self, request: Request<PutTextIndexRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<PutTextIndexResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

O-axis text index (text plugin). Non-O partitions return UNIMPLEMENTED. The partition owns a Tantivy directory beside the hexastore: it applies documents verbatim, commits and reloads before acknowledging, and answers TextCandidateScan with a full distinct-term drain.
Source§

fn text_candidate_scan<'life0, 'async_trait>( &'life0 self, request: Request<TextCandidateScanRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Self::TextCandidateScanStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Streaming candidate drain for one search mode (see TextCandidateScanRequest).
Source§

fn text_subject_scan<'life0, 'async_trait>( &'life0 self, request: Request<TextSubjectScanRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<Self::TextSubjectScanStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Streaming subject resolve for the Jena subject form: runs the text search, walks OPSG for each matched literal under the request’s predicates, and emits distinct (subject, graph) rows. O axis only.
Source§

fn rebuild_text_index<'life0, 'async_trait>( &'life0 self, request: Request<RebuildTextIndexRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<RebuildTextIndexResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Open-or-create the text index with an explicit config, optionally wipe, and take the rebuild lease (see RebuildTextIndexRequest). O axis only.
Source§

fn renew_text_rebuild_lease<'life0, 'async_trait>( &'life0 self, request: Request<RenewTextRebuildLeaseRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<RenewTextRebuildLeaseResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Driver keepalive for the text rebuild lease (O axis only).
Source§

fn finish_text_index_rebuild<'life0, 'async_trait>( &'life0 self, request: Request<FinishTextIndexRebuildRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<FinishTextIndexRebuildResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Stamp the rebuild epoch and release the lease (O axis only).
Source§

fn flush_memtables<'life0, 'async_trait>( &'life0 self, _request: Request<FlushMemtablesRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<FlushMemtablesResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn compact_range<'life0, 'async_trait>( &'life0 self, _request: Request<CompactRangeRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<CompactRangeResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn get_stats_profile<'life0, 'async_trait>( &'life0 self, _request: Request<GetStatsProfileRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetStatsProfileResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn get_geo_histogram<'life0, 'async_trait>( &'life0 self, request: Request<GetGeoHistogramRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetGeoHistogramResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn get_temporal_histogram<'life0, 'async_trait>( &'life0 self, _request: Request<GetTemporalHistogramRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetTemporalHistogramResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn get_text_seed_sketch<'life0, 'async_trait>( &'life0 self, _request: Request<GetTextSeedSketchRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetTextSeedSketchResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn list_named_graphs<'life0, 'async_trait>( &'life0 self, request: Request<ListNamedGraphsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ListNamedGraphsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn add_named_graph<'life0, 'async_trait>( &'life0 self, request: Request<AddNamedGraphRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<AddNamedGraphResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn health<'life0, 'async_trait>( &'life0 self, _request: Request<HealthRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<HealthResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn describe<'life0, 'async_trait>( &'life0 self, _request: Request<HexastoreDescribeRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<HexastoreDescribeResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Converts Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Converts Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Converts &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Converts &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> DowncastSend for T
where T: Any + Send,

§

fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>

Converts Box<Trait> (where Trait: DowncastSend) to Box<dyn Any + Send>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_sync(self: Box<T>) -> Box<dyn Any + Sync + Send>

Converts Box<Trait> (where Trait: DowncastSync) to Box<dyn Any + Send + Sync>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

Converts Arc<Trait> (where Trait: DowncastSync) to Arc<Any>, which can then be downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T> IntoRequest<T> for T

§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
§

impl<L> LayerExt<L> for L

§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in [Layered].
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Fruit for T
where T: Send + Downcast,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,