pub struct LaminarDB { /* private fields */ }Expand description
The main LaminarDB database handle.
Unified interface for SQL execution, data ingestion, and result consumption.
Implementations§
Source§impl LaminarDB
impl LaminarDB
Sourcepub fn open() -> Result<Arc<Self>, DbError>
pub fn open() -> Result<Arc<Self>, DbError>
Create an embedded in-memory database with default settings.
§Errors
Returns DbError if DataFusion context creation fails.
Sourcepub fn open_with_config(config: LaminarConfig) -> Result<Arc<Self>, DbError>
pub fn open_with_config(config: LaminarConfig) -> Result<Arc<Self>, DbError>
Sourcepub async fn adopt_assignment_snapshot(
&self,
snapshot: AssignmentSnapshot,
deadline: Instant,
) -> Result<SnapshotAdoption, DbError>
pub async fn adopt_assignment_snapshot( &self, snapshot: AssignmentSnapshot, deadline: Instant, ) -> Result<SnapshotAdoption, DbError>
Adopt one authority-audited assignment, staging exact committed frames for live vnode acquisition. Startup recovery still restores the complete graph before launch.
§Errors
Returns a checkpoint error when authority, state, or the deadline changes before atomic publication. The assignment is not published in that case.
Sourcepub async fn collect_local_table(
&self,
name: &str,
) -> Result<Vec<RecordBatch>, DbError>
pub async fn collect_local_table( &self, name: &str, ) -> Result<Vec<RecordBatch>, DbError>
Collect this node’s physical table slice without invoking distributed fan-out.
This is intended for cluster diagnostics and placement validation. It deliberately returns
immutable batches rather than exposing the mutable DataFusion catalog.
§Errors
Returns an error when the local table cannot be resolved, planned, or collected.
Sourcepub fn builder() -> LaminarDbBuilder
pub fn builder() -> LaminarDbBuilder
Returns a fluent builder for constructing a LaminarDB.
Sourcepub fn connector_registry(&self) -> &ConnectorRegistry
pub fn connector_registry(&self) -> &ConnectorRegistry
Returns the frozen connector registry for factory lookup and deployment introspection.
Custom factories must be registered through LaminarDbBuilder::register_connector.
Sourcepub async fn execute_cluster_bootstrap_batch(
&self,
sql: &[String],
) -> Result<Vec<ExecuteResult>, DbError>
pub async fn execute_cluster_bootstrap_batch( &self, sql: &[String], ) -> Result<Vec<ExecuteResult>, DbError>
Apply and durably seal the complete startup catalog as one immutable batch. Existing sealed catalogs accept exact replay/no-op definitions only.
§Errors
Returns an error for a partial or divergent bootstrap, unsafe catalog mutation, lost leader authority, or manifest sealing failure. Local creates are rolled back on every error.
Sourcepub async fn execute_cluster_bootstrap(
&self,
sql: &str,
) -> Result<ExecuteResult, DbError>
pub async fn execute_cluster_bootstrap( &self, sql: &str, ) -> Result<ExecuteResult, DbError>
Apply one startup catalog definition and seal it as the complete inventory.
Prefer Self::execute_cluster_bootstrap_batch for server configuration.
§Errors
Returns an error when the definition is invalid or the catalog batch cannot be sealed.
Sourcepub fn get_session_property(&self, key: &str) -> Option<String>
pub fn get_session_property(&self, key: &str) -> Option<String>
Return a session property value.
Sourcepub fn session_properties(&self) -> HashMap<String, String>
pub fn session_properties(&self) -> HashMap<String, String>
Return all session properties.
Sourcepub fn set_session_property(&self, key: &str, value: &str)
pub fn set_session_property(&self, key: &str, value: &str)
Set a session property (keys are lowercased).
Sourcepub async fn subscribe<T: FromBatch>(
&self,
name: &str,
) -> Result<TypedSubscription<T>, DbError>
pub async fn subscribe<T: FromBatch>( &self, name: &str, ) -> Result<TypedSubscription<T>, DbError>
Subscribe to a named stream or materialized view.
§Errors
Returns DbError::StreamNotFound if the object or its output schema is unresolved.
Sourcepub fn lookup_subscription_schema(&self, name: &str) -> Option<SchemaRef>
pub fn lookup_subscription_schema(&self, name: &str) -> Option<SchemaRef>
Schema a SUBSCRIBE against name would emit.
A stream is visible here only after its physical output schema has been
resolved. Bare sources and unresolved streams are not subscribable.
Sourcepub async fn open_subscription(
&self,
name: &str,
filter_sql: Option<&str>,
start: SubscribeStart,
) -> Result<SubscriptionPortal, DbError>
pub async fn open_subscription( &self, name: &str, filter_sql: Option<&str>, start: SubscribeStart, ) -> Result<SubscriptionPortal, DbError>
Open a SUBSCRIBE portal against a named MV or resolved stream. A bare
SOURCE is not subscribable (surfaced as StreamNotFound).
§Errors
StreamNotFound for unknown name; Subscription for unsupported cluster plans or
durable replay failures; Pipeline for subscriber-cap or filter-compile failures;
InvalidOperation when a local AsOfEpoch(n) is not committed or retained.
Sourcepub fn source<T: Record>(&self, name: &str) -> Result<SourceHandle<T>, DbError>
pub fn source<T: Record>(&self, name: &str) -> Result<SourceHandle<T>, DbError>
Get a typed handle for pushing data to a registered source.
§Errors
Returns DbError::SourceNotFound if the source is not registered.
Returns DbError::SchemaMismatch if the Rust type’s schema doesn’t match.
Sourcepub fn source_untyped(&self, name: &str) -> Result<UntypedSourceHandle, DbError>
pub fn source_untyped(&self, name: &str) -> Result<UntypedSourceHandle, DbError>
Get an untyped source handle for pushing RecordBatch data.
§Errors
Returns DbError::SourceNotFound if the source is not registered.
Sourcepub fn sources(&self) -> Vec<SourceInfo>
pub fn sources(&self) -> Vec<SourceInfo>
List registered sources.
Sourcepub fn materialized_views(&self) -> Vec<MaterializedViewInfo>
pub fn materialized_views(&self) -> Vec<MaterializedViewInfo>
List registered materialized views.
Sourcepub fn streams(&self) -> Vec<StreamInfo>
pub fn streams(&self) -> Vec<StreamInfo>
List registered streams.
Sourcepub fn pipeline_topology(&self) -> PipelineTopology
pub fn pipeline_topology(&self) -> PipelineTopology
Build the pipeline topology graph (nodes + edges) from registered sources, streams, and sinks.
Sourcepub fn is_checkpoint_enabled(&self) -> bool
pub fn is_checkpoint_enabled(&self) -> bool
Returns whether streaming checkpointing is enabled.
Sourcepub async fn checkpoint(&self) -> Result<CheckpointResult, DbError>
pub async fn checkpoint(&self) -> Result<CheckpointResult, DbError>
Trigger a checkpoint that persists source offsets, sink positions, and operator state.
§Errors
Returns DbError::Checkpoint if checkpointing is disabled, no live
manual-checkpoint route exists, cluster leadership cannot be resolved,
or the checkpoint fails.
Sourcepub async fn checkpoint_with_timeout(
&self,
timeout: Duration,
) -> Result<CheckpointResult, DbError>
pub async fn checkpoint_with_timeout( &self, timeout: Duration, ) -> Result<CheckpointResult, DbError>
Trigger one manual checkpoint within a caller-provided relative budget.
The budget is capped by the configured checkpoint timeout. It bounds admission and attempt work; once an exact attempt is reserved, this call waits for terminal cleanup even if that requires the coordinator’s private cleanup budget.
§Errors
Returns DbError::Checkpoint under the same conditions as Self::checkpoint, or when
the caller-provided budget cannot be represented as an absolute deadline.
Sourcepub async fn checkpoint_stats(&self) -> Option<CheckpointStats>
pub async fn checkpoint_stats(&self) -> Option<CheckpointStats>
Returns checkpoint performance statistics, or None if the coordinator is not initialized.
Source§impl LaminarDB
impl LaminarDB
Sourcepub fn set_engine_metrics(&self, metrics: Arc<EngineMetrics>)
pub fn set_engine_metrics(&self, metrics: Arc<EngineMetrics>)
Inject prometheus engine metrics. Called once at startup before start().
Sourcepub fn set_prometheus_registry(
&self,
registry: Arc<Registry>,
) -> Result<(), DbError>
pub fn set_prometheus_registry( &self, registry: Arc<Registry>, ) -> Result<(), DbError>
Inject a shared Prometheus registry for connector-level metrics.
Called once at startup, after the registry is constructed but before
start(). Connectors created after this call will register their
metrics on this registry so they appear in the scrape output.
§Errors
Returns an error after the database leaves Created or when a registry
was already installed.
Sourcepub fn engine_metrics(&self) -> Option<Arc<EngineMetrics>>
pub fn engine_metrics(&self) -> Option<Arc<EngineMetrics>>
Get the engine metrics if set.
Sourcepub fn cluster_subscription_output_health(
&self,
) -> Option<ClusterSubscriptionOutputHealth>
pub fn cluster_subscription_output_health( &self, ) -> Option<ClusterSubscriptionOutputHealth>
Read process-local committed subscription output-log health without storage I/O.
Sourcepub fn checkpoint_barrier_timing_snapshot(
&self,
expected_process: Option<LocalProcessAuthorityIdentity>,
after_sequence: u64,
limit: usize,
) -> Result<CheckpointBarrierTimingPage, CheckpointBarrierTimingReadError>
pub fn checkpoint_barrier_timing_snapshot( &self, expected_process: Option<LocalProcessAuthorityIdentity>, after_sequence: u64, limit: usize, ) -> Result<CheckpointBarrierTimingPage, CheckpointBarrierTimingReadError>
Read one bounded, process-bound page of local cluster checkpoint barrier timings.
This is an in-memory diagnostic read. It performs no checkpoint, state-backend, network,
filesystem, or object-store operation. A continuation cursor is the pair of
expected_process and after_sequence; callers must retain both from the prior page.
Snapshot counters may advance immediately after this call, so certification must finish
with a quiescent repeated read rather than treating one page as a stable cut.
§Errors
Returns an error when a continuation omits or mismatches its process identity, live process authority cannot be sampled without waiting, authority changes during the read, or the bounded ledger snapshot rejects its cursor/page request.
Sourcepub fn pipeline_state(&self) -> &'static str
pub fn pipeline_state(&self) -> &'static str
Get the current pipeline state as a string.
Sourcepub fn last_fault(&self) -> Option<String>
pub fn last_fault(&self) -> Option<String>
The last runtime-fault or terminal resource-exhaustion reason. Populated when state is
Faulted; cleared on a clean start.
Sourcepub fn metrics(&self) -> PipelineMetrics
pub fn metrics(&self) -> PipelineMetrics
Get a pipeline-wide metrics snapshot.
Reads prometheus engine metrics and catalog sizes to produce a point-in-time view of pipeline health.
Sourcepub fn source_metrics(&self, name: &str) -> Option<SourceMetrics>
pub fn source_metrics(&self, name: &str) -> Option<SourceMetrics>
Get metrics for a single source by name.
Sourcepub fn all_source_metrics(&self) -> Vec<SourceMetrics>
pub fn all_source_metrics(&self) -> Vec<SourceMetrics>
Get metrics for all registered sources.
Sourcepub fn stream_metrics(&self, name: &str) -> Option<StreamMetrics>
pub fn stream_metrics(&self, name: &str) -> Option<StreamMetrics>
Get metrics for a single stream by name.
Sourcepub fn all_stream_metrics(&self) -> Vec<StreamMetrics>
pub fn all_stream_metrics(&self) -> Vec<StreamMetrics>
Get metrics for all registered streams.
Sourcepub fn total_events_processed(&self) -> u64
pub fn total_events_processed(&self) -> u64
Get the total number of events processed (ingested + emitted).
Sourcepub fn pipeline_watermark(&self) -> i64
pub fn pipeline_watermark(&self) -> i64
Returns the global pipeline watermark (minimum across all source watermarks).
Returns i64::MIN if no watermark-enabled sources exist or no events
have been processed.
Sourcepub fn cancel_query(&self, query_id: u64) -> Result<(), DbError>
pub fn cancel_query(&self, query_id: u64) -> Result<(), DbError>
Cancel a running query by ID.
Marks the query as inactive in the catalog. Future subscription polls for this query will receive no more data.
§Errors
Returns DbError if the query is not found.
Sourcepub fn source_count(&self) -> usize
pub fn source_count(&self) -> usize
Get the number of registered sources.
Sourcepub fn sink_count(&self) -> usize
pub fn sink_count(&self) -> usize
Get the number of registered sinks.
Sourcepub fn checkpoint_stats_nonblocking(&self) -> Option<CheckpointStats>
pub fn checkpoint_stats_nonblocking(&self) -> Option<CheckpointStats>
Returns checkpoint statistics if available (non-blocking).
Uses try_lock() on the coordinator mutex. Returns None if
the coordinator is not initialized or the lock is contended.
Sourcepub fn active_query_count(&self) -> usize
pub fn active_query_count(&self) -> usize
Get the number of active queries.
Source§impl LaminarDB
impl LaminarDB
Sourcepub fn enable_supervision(self: &Arc<Self>)
pub fn enable_supervision(self: &Arc<Self>)
Enable auto-restart from the last checkpoint on a fault. Without it, a fault parks
in Faulted for manual restart (the embedded default).
Sourcepub fn fence_cluster_startup(&self)
pub fn fence_cluster_startup(&self)
Keep clustered source intake closed while startup restores state and certifies assignment.
Call before Self::start; Self::finish_cluster_startup is the only startup path that
opens the gate.
Permanently withdraw this process’s clustered data-plane authority after lease loss.
Sourcepub fn cluster_intake_fenced(&self) -> bool
pub fn cluster_intake_fenced(&self) -> bool
Whether clustered source and shuffle intake is still fenced.
Sourcepub fn coordinated_recovery_in_progress(&self) -> bool
pub fn coordinated_recovery_in_progress(&self) -> bool
Whether a clustered runtime is held by coordinated recovery lifecycle authority.
Source§impl LaminarDB
impl LaminarDB
Sourcepub async fn finish_cluster_startup(
&self,
deadline: Instant,
) -> Result<ClusterStartupDisposition, DbError>
pub async fn finish_cluster_startup( &self, deadline: Instant, ) -> Result<ClusterStartupDisposition, DbError>
Finish clustered startup after the exact assignment fence is available.
Fresh nodes open intake only when no durable recovery round exists. A process that restored local state, or one that observes an active/stale round, remains fenced and requests a full coordinated rewind.
§Errors
Returns a checkpoint error when the local assignment has not been certified. Intake remains closed when recovery authority is unavailable so the monitor can retry without admitting records.
Sourcepub async fn prepare_cluster_startup_recovery_generation(
&self,
deadline: Instant,
) -> Result<(), DbError>
pub async fn prepare_cluster_startup_recovery_generation( &self, deadline: Instant, ) -> Result<(), DbError>
Import the last recovery generation that reached an irrevocable cluster Release before a fresh pipeline starts. The allocation high-watermark is deliberately not used: a driver can reserve a generation and fail before any data plane rewinds to it.
§Errors
Returns an error when durable recovery authority is unavailable, the process lease is lost, or an already-active transport conflicts with the committed terminal.
Sourcepub fn enable_coordinated_recovery(self: &Arc<Self>) -> Result<(), DbError>
pub fn enable_coordinated_recovery(self: &Arc<Self>) -> Result<(), DbError>
Start the database-owned per-node recovery supervisor once. Coordinated recovery is the only cluster fault path — a local-only restart rewinds one node while peers advance, an inconsistent cut.
§Errors
Returns an error if the database-owned control runtime cannot be initialized.
Source§impl LaminarDB
impl LaminarDB
Sourcepub async fn shutdown(&self) -> Result<(), DbError>
pub async fn shutdown(&self) -> Result<(), DbError>
Shut down the streaming pipeline gracefully. Idempotent.
§Errors
Returns Err if the watcher task panicked.
Sourcepub async fn stop_pipeline(&self) -> Result<(), DbError>
pub async fn stop_pipeline(&self) -> Result<(), DbError>
Stop the streaming pipeline so it can be restarted.
§Errors
Returns DbError::InvalidOperation if the pipeline is still starting
or the coordinator does not exit within the stop timeout.
Source§impl LaminarDB
impl LaminarDB
Sourcepub async fn build_show_checkpoint_status(&self) -> Result<RecordBatch, DbError>
pub async fn build_show_checkpoint_status(&self) -> Result<RecordBatch, DbError>
Build a SHOW CHECKPOINT STATUS metadata result. Public so the server’s
GET /api/v1/cluster/checkpoints endpoint can surface it.
§Errors
Returns DbError::Checkpoint if the metadata batch cannot be assembled.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for LaminarDB
impl !RefUnwindSafe for LaminarDB
impl !UnwindSafe for LaminarDB
impl Send for LaminarDB
impl Sync for LaminarDB
impl Unpin for LaminarDB
impl UnsafeUnpin for LaminarDB
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
U: Sized,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
U: Sized,
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read more§impl<T> AsAny for T
impl<T> AsAny for T
§fn any_ref(&self) -> &(dyn Any + Send + Sync + 'static)
fn any_ref(&self) -> &(dyn Any + Send + Sync + 'static)
dyn Any reference to the object: Read more§fn as_any(self: Arc<T>) -> Arc<dyn Any + Send + Sync> ⓘ
fn as_any(self: Arc<T>) -> Arc<dyn Any + Send + Sync> ⓘ
Arc<dyn Any> reference to the object: Read more§fn into_any(self: Box<T>) -> Box<dyn Any + Send + Sync>
fn into_any(self: Box<T>) -> Box<dyn Any + Send + Sync>
Box<dyn Any>: Read more§fn type_name(&self) -> &'static str
fn type_name(&self) -> &'static str
std::any::type_name, since Any does not provide it and
Any::type_id is useless as a debugging aid (its Debug is just a mess of hex digits).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
§impl<T> Conv for T
impl<T> Conv for T
§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Any.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Any.§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T> MaybeSend for Twhere
T: Send,
impl<T> MaybeSend for Twhere
T: Send,
§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2where
T: SharedNiching<N1, N2>,
N1: Niching<T>,
N2: Niching<T>,
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2where
T: SharedNiching<N1, N2>,
N1: Niching<T>,
N2: Niching<T>,
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Pointee for T
impl<T> Pointee for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.