Skip to main content

KernelBuilder

Struct KernelBuilder 

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

Builds a Kernel (spec 3.2 §7.2).

A run store is required; everything else is optional. The process store defaults to InMemoryProcessStore. Harness::kernel(..) (feature kernel of adk-harness, §10 HK1) returns one with the harness runner registered as the adk-rust and harness.goal targets.

§Example

use std::sync::Arc;
use adk_core::InMemoryRunStore;
use adk_kernel::{Kernel, KernelConfig};

let kernel = Kernel::builder()
    .config(KernelConfig::default().with_app_name("ops"))
    .run_store(Arc::new(InMemoryRunStore::new()))
    .build()
    .unwrap();
assert_eq!(kernel.config().app_name, "ops");

Implementations§

Source§

impl KernelBuilder

Source

pub fn new() -> Self

A builder with the default configuration and no stores.

Source

pub fn config(self, config: KernelConfig) -> Self

Sets the configuration.

Source

pub fn governance(self, control: GovernanceControl) -> Self

Sets the kill switch. It replaces KernelConfig::governance at build, whenever config is called, so a builder from Harness::kernel() keeps the harness’s control when the caller sets its own configuration.

Source

pub fn run_store(self, runs: Arc<dyn DurableRunStore>) -> Self

Sets the durable run store every process lives in. Required.

Source

pub fn process_store(self, processes: Arc<dyn ProcessStore>) -> Self

Sets the process side table. Defaults to InMemoryProcessStore.

Source

pub fn schedule_store(self, schedules: Arc<dyn ScheduleStore>) -> Self

Sets the schedule store the kernel’s DurableScheduler fires.

Source

pub fn approval_service(self, approvals: Arc<dyn ApprovalService>) -> Self

Sets the approval service, built with StoreApprovalService::with_run_store so a decision wakes the parked run; pass the same service to the agents’ RunConfig.

The kernel files every call the service would hold with no route into its inbox for the operator group, self-approval allowed, as adk-rust up routes them (ApprovalService::route_unrouted): a router the service was built with keeps deciding. It publishes held when a request is filed and decided when a decision resolves one (ApprovalService::add_notifier). A service that takes neither is named in Kernel::inventory. For Wake::Approval sleepers, build the service with with_notifier(source) over an ApprovalWakeSource and pass the same source to wake_source.

§Example
use std::sync::Arc;
use adk_core::{InMemoryApprovalStore, InMemoryRunStore, StoreApprovalService};
use adk_kernel::Kernel;

let runs = Arc::new(InMemoryRunStore::new());
let approvals = Arc::new(
    StoreApprovalService::new(Arc::new(InMemoryApprovalStore::new()))
        .with_run_store(runs.clone()),
);
// The agents' runner takes the same service: `RunConfig::builder().approval_service(..)`.
let kernel = Kernel::builder().run_store(runs).approval_service(approvals).build()?;
assert!(!kernel.inventory().warnings.iter().any(|w| w.code.starts_with("kernel.approvals")));
Source

pub fn session_service(self, sessions: Arc<dyn SessionService>) -> Self

Sets the session service attach reads transcripts from.

Source

pub fn spend_ledger(self, spend: Arc<dyn SpendLedger>) -> Self

Sets the spend ledger the process views read.

Source

pub fn audit(self, trail: AuditTrail) -> Self

Sets the signed audit trail for the kernel’s records (spec 3.2 §9.3).

Source

pub fn agent(self, target: impl Into<String>, runner: Arc<Runner>) -> Self

Hosts runner as the target target on every queue’s worker, as DurableWorker::with_agent does.

Source

pub fn workflows(self, workflows: Arc<dyn WorkflowExecutor>) -> Self

Hosts workflow targets, as DurableWorker::with_workflows does, in place of every executor given before; workflow adds one beside them.

Source

pub fn workflow(self, executor: Arc<dyn WorkflowExecutor>) -> Self

Adds executor beside the workflow executors given before: a workflow run goes to the first executor, in the order given, that has its workflow id. Products and kits each add their own, such as a site’s workflows beside its KPI tracker.

§Example
use std::sync::Arc;
use adk_core::InMemoryRunStore;
use adk_kernel::{Kernel, Trigger, Wake};
use adk_server::background::{WorkflowExecutor, WorkflowState};
use tokio_util::sync::CancellationToken;

struct One(&'static str);

#[async_trait::async_trait]
impl WorkflowExecutor for One {
    fn has_workflow(&self, id: &str) -> bool {
        id == self.0
    }

    async fn execute(&self, _: &str, _: WorkflowState, _: CancellationToken) -> Result<serde_json::Value, String> {
        Ok(serde_json::json!(self.0))
    }
}

let run = |target: &str| adk_core::NewRun::new("background", "ops", "kernel", target, serde_json::json!({}));
let kernel = Kernel::builder()
    .run_store(Arc::new(InMemoryRunStore::new()))
    .workflow(Arc::new(One("digest")))
    .workflow(Arc::new(One("probe")))
    .trigger(Trigger::new("weekly", Wake::Webhook { hook: "weekly".into() }, run("digest")))
    .trigger(Trigger::new("probe", Wake::Webhook { hook: "probe".into() }, run("probe")))
    .build()?;
assert!(kernel.inventory().triggers.iter().all(|trigger| trigger.served));
Source

pub fn kpi_tracker( self, tracker: KpiTracker, app_name: &str, expr: &str, ) -> Self

Runs tracker, a site’s KPI tracker, as the kernel’s kernel.kpi process (spec 3.5 §7.11; feature charter): its trigger (KpiTracker::trigger) on the six-field UTC cron expr for app app_name, and one KpiTrackerExecutor over every tracker registered, beside the other workflows. The tracker then shows in ps, keeps a cron watermark and waits out a freeze.

§Example
use std::sync::Arc;
use adk_core::InMemoryRunStore;
use adk_kernel::Kernel;
use adk_kernel::charter::{InMemoryCharterStore, InMemoryKpiStore, KpiTracker};

let tracker = KpiTracker::new(uuid::Uuid::new_v4(), Arc::new(InMemoryCharterStore::new()), Arc::new(InMemoryKpiStore::new()));
let kernel = Kernel::builder()
    .run_store(Arc::new(InMemoryRunStore::new()))
    .kpi_tracker(tracker, "bakery", "0 0 * * * *")
    .build()?;
let trigger = &kernel.inventory().triggers[0];
assert_eq!((trigger.target.as_str(), trigger.served), ("kernel.kpi", true));
Source

pub fn wake_source(self, source: Arc<dyn WakeSource>) -> Self

Adds a wake source.

Source

pub fn trigger(self, trigger: Trigger) -> Self

Adds a standing trigger.

Source

pub fn event_sink(self, sink: Arc<dyn EventSink>) -> Self

Adds an event sink, such as an outbound WebhookSink (feature webhooks), that receives every later event through its own bounded queue (spec 3.2 §7.6).

Source

pub fn progress_source(self, source: Arc<dyn ProgressSource>) -> Self

Sets the source of goal progress and loop-guard verdicts for process views.

Source

pub fn partition_progress_source( self, partition: impl Into<PartitionId>, source: Arc<dyn ProgressSource>, ) -> Self

Sets the progress source of partition partition (spec 3.2 §7.8, §7.10): the kernel asks it, not the progress_source, for the goal progress, loop-guard verdict and usage of that partition’s processes — routed by the process’s own partition — and hands it the process table and the ledger at start, as it does the main source. A partition without a source of its own falls back to the main source; its processes keep their partition.

build refuses a second source for the same partition, and Kernel::start warns about a partition the partition table does not hold.

§Example
use std::sync::Arc;
use adk_core::InMemoryRunStore;
use adk_kernel::{Kernel, ProgressSource};

struct Work;
impl ProgressSource for Work {}

let builder = || Kernel::builder().run_store(Arc::new(InMemoryRunStore::new()));
assert!(builder().partition_progress_source("work", Arc::new(Work)).build().is_ok());
let twice = builder()
    .partition_progress_source("work", Arc::new(Work))
    .partition_progress_source("work", Arc::new(Work))
    .build();
assert!(twice.is_err());
Source

pub fn queue_ingress(self, ingress: QueueIngress) -> Self

Adds a queue ingress the kernel runs while started, such as queue_wake_ingress.

Source

pub fn agenda_store(self, store: Arc<dyn AgendaStore>) -> Self

Sets the agenda’s store (spec 3.2 §7.5). Defaults to InMemoryAgendaStore.

Source

pub fn agenda_handle(self, handle: AgendaHandle) -> Self

Binds handle to the built kernel’s agenda, so a tool created before the kernel — the harness’s propose_followup — reaches it (spec 3.2 §7.5, §10 HK1).

Source

pub fn subagents(self, config: SubagentConfig) -> Self

Hosts background sub-agents (adk_core::subagent): a parent agent’s start_subagent runs another agent as a process of this kernel’s background queue — or of the queue config names, when the kernel has it — with a budget slice carved from the parent’s run, the parent’s tools as its ceiling, and its status on the bus. Off by default, since a sub-agent works without a person watching it.

Needs a session_service: a fork copies the parent’s session, and a parent is told once by the notice its session holds.

§Example
use std::sync::Arc;
use adk_core::{InMemoryRunStore, RunBudget};
use adk_kernel::{Kernel, SubagentHandle};
use adk_server::background::SubagentConfig;

let handle = SubagentHandle::new(); // give the lead agent `SubagentTools::new(Arc::new(handle.clone()))`
let kernel = Kernel::builder()
    .run_store(Arc::new(InMemoryRunStore::new()))
    .session_service(sessions)
    .agent("lead", runner)
    .subagents(SubagentConfig::default().with_default_budget(RunBudget::new().max_model_calls(20)))
    .subagent_handle(handle)
    .build()?;
assert!(kernel.subagents().is_some());
Source

pub fn subagent_handle(self, handle: SubagentHandle) -> Self

Binds handle to the built kernel’s sub-agent host, so the sub-agent tools of an agent built before the kernel reach it.

Source

pub fn agent_store(self, store: Arc<dyn AgentStore>) -> Self

Sets where the agents a person adds are kept (spec 3.3 §5.7, §10 K7). Defaults to InMemoryAgentStore, which keeps nothing across a restart.

Source

pub fn agent_factory(self, factory: Arc<dyn AgentFactory>) -> Self

Sets how the agents a person adds are built (spec 3.3 §5.7, §10 K7). Without one the kernel lists and removes agents but adds none.

Source

pub fn agents_handle(self, handle: AgentsHandle) -> Self

Binds handle to the built kernel’s agent table, so a tool created before the kernel — the harness’s propose_agent — reaches it (spec 3.3 §10 K7), as agenda_handle does for propose_followup.

Source

pub fn standing_rules(self, source: Arc<dyn StandingRuleSource>) -> Self

Sets where the daily review reads standing rules (spec 3.2 §9.1); Harness::kernel sets the harness’s rule store.

Source

pub fn consolidator( self, partition: impl Into<PartitionId>, consolidator: Arc<dyn Consolidator>, ) -> Self

Registers consolidator for partition: the kernel runs its consolidation tick there when ProactivityPolicy::consolidation is set (spec 3.2 §7.5, §10 HK2).

Source

pub fn drivers(self, drivers: DriverSupervisor) -> Self

Supervises drivers (spec 3.2 §7.7): Kernel::start loads the mounted drivers and starts the eager ones, Kernel::stop stops them, and their state changes reach the kernel’s bus and audit trail.

Source

pub fn observation_audience( self, partition: impl Into<PartitionId>, audience: Arc<dyn ObservationAudience>, ) -> Self

Registers audience for partition (spec 3.2 §7.10): the daily baseline pass puts the partition’s observations to the person it names as AgendaOrigin::Observation questions, and a confirmation is remembered through it. Without one, observations stay at /api/kernel/proc/observations and nobody is asked.

Source

pub fn ledger(self, ledger: Ledger) -> Self

Keeps the content-free activity ledger in ledger (spec 3.2 §7.10, feature proc): every event but Health writes its row, the ProgressSource gets the ledger at start so the hosted runtime writes its own activity, and rows are stamped on KernelConfig::clock.

Source

pub fn baseline_policy(self, policy: BaselinePolicy) -> Self

Runs the daily baseline pass under policy (spec 3.2 §7.10, feature proc-baselines). With a ledger and no policy, the pass runs under BaselinePolicy::default(); BaselinePolicy::disabled() turns it off.

Source

pub fn observation_phraser(self, phraser: Arc<dyn ObservationPhraser>) -> Self

Words observations with phraser, a model used only after the deterministic detection (spec 3.2 §7.10, feature proc-baselines); without one the kernel’s template words them.

Source

pub fn partitions(self, partitions: Partitions) -> Self

Sets the partition table (spec 3.2 §7.8). Defaults to one in memory. Give the kernel the Partitions its partition harnesses were built with, so their policies, the control plane and the daily review read one table.

Source

pub fn partition_agent( self, partition: impl Into<PartitionId>, target: impl Into<String>, runner: Arc<Runner>, ) -> Self

Hosts runner, the harness of partition partition, as the target target, bound to the partition (spec 3.2 §7.8, K-I15): a process of another partition cannot run it, a spawn of it in the default partition runs in partition, and a run of it enqueued outside the kernel is listed in partition.

Source

pub fn watermark_store(self, store: Arc<dyn CronWatermarkStore>) -> Self

Sets where the cron wakes of sleepers keep their cursors (spec 3.2 §7.4). Defaults to InMemoryCronWatermarkStore, which keeps nothing across a restart.

The kernel fires a sleeper’s cron wake itself and keeps the expression’s cursor here under kernel:<expression>. With a durable store shared by every replica, a restart or another replica fires each occurrence missed while no kernel ran once, as the sleepers’ missed policies pick them, and never one that already fired.

§Example
use std::sync::Arc;
use adk_core::InMemoryRunStore;
use adk_kernel::{InMemoryCronWatermarkStore, Kernel};

let kernel = Kernel::builder()
    .run_store(Arc::new(InMemoryRunStore::new()))
    .watermark_store(Arc::new(InMemoryCronWatermarkStore::new()))
    .build()
    .unwrap();
Source

pub fn stores(self, stores: &KernelStores) -> Self

Takes every stateful store the builder has no other from stores (spec 3.2 §7.1): a store set on the builder, before or after, wins.

Builder storeFrom stores
run_store, process_store, schedule_store, spend_ledger, agenda_store, watermark_store, agent_storethe store of the same name
partitionsa table over partitions
the kill switchKernelConfig::mirrored_governance over governance, unless governance is set, the configuration’s is mirrored, or the bundle keeps governance in memory
the control plane’s settings storecontrol, unless the configuration names its own (ControlPlaneConfig::with_control_store)

The approval service, the drivers’ supervisor and the activity ledger are built by the host over approvals, drivers and ledger, with its own routing, home and key. A runner built before the kernel shares the kernel’s kill switch through kernel.config().governance.

§Example
use adk_kernel::Kernel;
use adk_kernel::stores::{KernelStores, StoreOrigin};

let kernel = Kernel::builder().stores(&KernelStores::in_memory()).build()?;
assert!(kernel.store_uses().iter().all(|used| used.origin == StoreOrigin::Bundle));
Source

pub fn require_durable(self) -> Self

Refuses to build a kernel that would keep a stateful store in memory (spec 3.2 §7.1): one the builder defaulted, one its KernelStores keeps in memory, or a kill switch that is not mirrored. Without it, the kernel’s inventory warns about each such store when the kernel starts. Kernel::store_uses reports each store either way.

§Example
use std::sync::Arc;
use adk_core::InMemoryRunStore;
use adk_kernel::Kernel;

let refused = Kernel::builder()
    .run_store(Arc::new(InMemoryRunStore::new()))
    .require_durable()
    .build()
    .unwrap_err();
assert!(refused.to_string().contains("`process_store`"));
Source

pub fn signals( self, store: Arc<dyn SignalStore>, partition: impl Into<PartitionId>, ) -> Self

Files signals in partition through store (spec 3.5 §7.10; feature charter): Kernel::signal_sink returns the partition’s sink, and the kernel’s inventory knows the partition’s signal triggers can fire. Registering a partition again replaces its store.

§Example
use std::sync::Arc;
use adk_core::InMemoryRunStore;
use adk_kernel::Kernel;
use adk_kernel::charter::InMemorySignalStore;

let kernel = Kernel::builder()
    .run_store(Arc::new(InMemoryRunStore::new()))
    .signals(Arc::new(InMemorySignalStore::new()), "back-office")
    .build()?;
assert_eq!(kernel.signal_sink("back-office")?.partition().as_str(), "back-office");
assert!(kernel.signal_sink("public").is_err());
Source

pub fn inventory_warning(self, warning: InventoryWarning) -> Self

Adds warning to the kernel’s inventory, logged when the kernel starts: something the host or a kit would otherwise leave silent, such as a job it does not schedule and why.

§Example
use std::sync::Arc;
use adk_core::InMemoryRunStore;
use adk_kernel::Kernel;
use adk_kernel::inventory::InventoryWarning;

let kernel = Kernel::builder()
    .run_store(Arc::new(InMemoryRunStore::new()))
    .inventory_warning(InventoryWarning::new("site.job_unscheduled", "no channel for the digest"))
    .build()?;
assert!(kernel.inventory().warnings.iter().any(|warning| warning.code == "site.job_unscheduled"));
Source

pub fn build(self) -> Result<Kernel>

Builds the kernel. Nothing runs until Kernel::start.

§Errors

Returns KernelError::Config when no run store is set, the control plane configuration is refused (K-I18), a partition has two progress sources, or require_durable is set and a stateful store would be kept in memory, naming each.

Trait Implementations§

Source§

impl Debug for KernelBuilder

Source§

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

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

impl Default for KernelBuilder

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for KernelBuilder

§

impl !UnwindSafe for KernelBuilder

§

impl Forget for KernelBuilder

§

impl Freeze for KernelBuilder
where *const u8 is !null: Freeze, PhantomData<u8>: Freeze, PhantomData<QueueClass>: Freeze, *const LeafNode<AgentId, SetValZST> is !null: Freeze, PhantomData<(Owned, LeafOrInternal)>: Freeze, PhantomData<Box<(AgentId, SetValZST)>>: Freeze, *const ArcInner<ControlState> is !null: Freeze, PhantomData<ArcInner<ControlState>>: Freeze, *const ArcInner<dyn RequestContextExtractor> is !null: Freeze, PhantomData<ArcInner<dyn RequestContextExtractor>>: Freeze, *const ArcInner<Inner> is !null: Freeze, PhantomData<ArcInner<Inner>>: Freeze, *const ArcInner<dyn ControlStore> is !null: Freeze, PhantomData<ArcInner<dyn ControlStore>>: Freeze, *const ArcInner<dyn MemoryBook> is !null: Freeze, PhantomData<ArcInner<dyn MemoryBook>>: Freeze, *const ArcInner<dyn RecordBook> is !null: Freeze, PhantomData<ArcInner<dyn RecordBook>>: Freeze, *const ArcInner<dyn CommandHost> is !null: Freeze, PhantomData<ArcInner<dyn CommandHost>>: Freeze, *const LeafNode<PartitionId, PartitionMode> is !null: Freeze, PhantomData<Box<(PartitionId, PartitionMode)>>: Freeze, PhantomData<(PartitionMode, String)>: Freeze, *const ArcInner<dyn Clock> is !null: Freeze, PhantomData<ArcInner<dyn Clock>>: Freeze, *const LeafNode<UsageUnit, u64> is !null: Freeze, PhantomData<Box<(UsageUnit, u64)>>: Freeze, *const ArcInner<dyn DurableRunStore> is !null: Freeze, PhantomData<ArcInner<dyn DurableRunStore>>: Freeze, *const ArcInner<dyn ProcessStore> is !null: Freeze, PhantomData<ArcInner<dyn ProcessStore>>: Freeze, *const ArcInner<dyn ScheduleStore> is !null: Freeze, PhantomData<ArcInner<dyn ScheduleStore>>: Freeze, *const ArcInner<dyn ApprovalService> is !null: Freeze, PhantomData<ArcInner<dyn ApprovalService>>: Freeze, *const ArcInner<dyn SessionService> is !null: Freeze, PhantomData<ArcInner<dyn SessionService>>: Freeze, *const ArcInner<dyn SpendLedger> is !null: Freeze, PhantomData<ArcInner<dyn SpendLedger>>: Freeze, *const ArcInner<dyn AuditRecorder> is !null: Freeze, PhantomData<ArcInner<dyn AuditRecorder>>: Freeze, *const LeafNode<String, Arc<Runner>> is !null: Freeze, PhantomData<Box<(String, Arc<Runner>)>>: Freeze, PhantomData<Arc<dyn WorkflowExecutor>>: Freeze, PhantomData<KpiTracker>: Freeze, PhantomData<Arc<dyn WakeSource>>: Freeze, PhantomData<Trigger>: Freeze, PhantomData<Arc<dyn EventSink>>: Freeze, *const ArcInner<dyn ProgressSource> is !null: Freeze, PhantomData<ArcInner<dyn ProgressSource>>: Freeze, PhantomData<(PartitionId, Arc<dyn ProgressSource>)>: Freeze, PhantomData<QueueIngress>: Freeze, *const ArcInner<dyn AgendaStore> is !null: Freeze, PhantomData<ArcInner<dyn AgendaStore>>: Freeze, PhantomData<AgendaHandle>: Freeze, *const ArcInner<dyn AgentStore> is !null: Freeze, PhantomData<ArcInner<dyn AgentStore>>: Freeze, *const ArcInner<dyn AgentFactory> is !null: Freeze, PhantomData<ArcInner<dyn AgentFactory>>: Freeze, PhantomData<AgentsHandle>: Freeze, *const ArcInner<dyn StandingRuleSource> is !null: Freeze, PhantomData<ArcInner<dyn StandingRuleSource>>: Freeze, *const LeafNode<PartitionId, Arc<dyn Consolidator>> is !null: Freeze, PhantomData<Box<(PartitionId, Arc<dyn Consolidator>)>>: Freeze, *const ArcInner<Inner> is !null: Freeze, PhantomData<ArcInner<Inner>>: Freeze, *const LeafNode<PartitionId, Arc<dyn ObservationAudience>> is !null: Freeze, PhantomData<Box<(PartitionId, Arc<dyn ObservationAudience>)>>: Freeze, *const ArcInner<dyn LedgerStore> is !null: Freeze, PhantomData<ArcInner<dyn LedgerStore>>: Freeze, *const ArcInner<LedgerKey> is !null: Freeze, PhantomData<ArcInner<LedgerKey>>: Freeze, *const LeafNode<String, f64> is !null: Freeze, PhantomData<Box<(String, f64)>>: Freeze, *const ArcInner<dyn ObservationPhraser> is !null: Freeze, PhantomData<ArcInner<dyn ObservationPhraser>>: Freeze, *const ArcInner<PartitionsInner> is !null: Freeze, PhantomData<ArcInner<PartitionsInner>>: Freeze, *const LeafNode<String, PartitionId> is !null: Freeze, PhantomData<Box<(String, PartitionId)>>: Freeze, *const ArcInner<dyn CronWatermarkStore> is !null: Freeze, PhantomData<ArcInner<dyn CronWatermarkStore>>: Freeze, *const ArcInner<dyn ApprovalStore> is !null: Freeze, PhantomData<ArcInner<dyn ApprovalStore>>: Freeze, *const ArcInner<dyn ActionLedger> is !null: Freeze, PhantomData<ArcInner<dyn ActionLedger>>: Freeze, *const ArcInner<dyn GovernanceStateStore> is !null: Freeze, PhantomData<ArcInner<dyn GovernanceStateStore>>: Freeze, *const ArcInner<dyn PartitionStore> is !null: Freeze, PhantomData<ArcInner<dyn PartitionStore>>: Freeze, *const ArcInner<dyn DeviceStore> is !null: Freeze, PhantomData<ArcInner<dyn DeviceStore>>: Freeze, *const ArcInner<dyn DriverStore> is !null: Freeze, PhantomData<ArcInner<dyn DriverStore>>: Freeze, *const ArcInner<dyn ChannelBindingStore> is !null: Freeze, PhantomData<ArcInner<dyn ChannelBindingStore>>: Freeze, *const ArcInner<dyn CharterStore> is !null: Freeze, PhantomData<ArcInner<dyn CharterStore>>: Freeze, *const ArcInner<dyn KpiStore> is !null: Freeze, PhantomData<ArcInner<dyn KpiStore>>: Freeze, *const ArcInner<dyn AutonomyStore> is !null: Freeze, PhantomData<ArcInner<dyn AutonomyStore>>: Freeze, *const ArcInner<dyn SignalStore> is !null: Freeze, PhantomData<ArcInner<dyn SignalStore>>: Freeze, *const LeafNode<&'static str, SetValZST> is !null: Freeze, PhantomData<Box<(&'static str, SetValZST)>>: Freeze, *const LeafNode<PartitionId, Arc<dyn SignalStore>> is !null: Freeze, PhantomData<Box<(PartitionId, Arc<dyn SignalStore>)>>: Freeze, PhantomData<InventoryWarning>: Freeze, PhantomData<SubagentTarget>: Freeze, PhantomData<SubagentHandle>: Freeze,

§

impl Move for KernelBuilder

§

impl Send for KernelBuilder
where RawVecInner: Send, NodeRef<Owned, AgentId, SetValZST, LeafOrInternal>: Send, BoxRaw<(AgentId, SetValZST)>: Send, Arc<ControlState>: Send, Arc<dyn RequestContextExtractor>: Send, Arc<Inner>: Send, Arc<dyn ControlStore>: Send, Arc<dyn MemoryBook>: Send, Arc<dyn RecordBook>: Send, Arc<dyn CommandHost>: Send, NodeRef<Owned, PartitionId, PartitionMode, LeafOrInternal>: Send, BoxRaw<(PartitionId, PartitionMode)>: Send, Arc<dyn Clock>: Send, NodeRef<Owned, UsageUnit, u64, LeafOrInternal>: Send, BoxRaw<(UsageUnit, u64)>: Send, Arc<dyn DurableRunStore>: Send, Arc<dyn ProcessStore>: Send, Arc<dyn ScheduleStore>: Send, Arc<dyn ApprovalService>: Send, Arc<dyn SessionService>: Send, Arc<dyn SpendLedger>: Send, Arc<dyn AuditRecorder>: Send, NodeRef<Owned, String, Arc<Runner>, LeafOrInternal>: Send, BoxRaw<(String, Arc<Runner>)>: Send, Arc<dyn WorkflowExecutor>: Send, Arc<dyn CharterStore>: Send, Arc<dyn KpiStore>: Send, NodeRef<Owned, String, Arc<dyn KpiSource>, LeafOrInternal>: Send, BoxRaw<(String, Arc<dyn KpiSource>)>: Send, Arc<dyn JobControl>: Send, Arc<dyn AutonomyStore>: Send, Arc<dyn CharterEventSink>: Send, Arc<dyn WakeSource>: Send, NonZero<i32>: Send, Utc: Send, RawTable<usize>: Send, NodeRef<Owned, String, String, LeafOrInternal>: Send, BoxRaw<(String, String)>: Send, Arc<dyn EventSink>: Send, Arc<dyn ProgressSource>: Send, Arc<dyn QueueSource>: Send, Arc<dyn Fn(&QueueMessage) -> Result<NewRun, AdkError> + Sync + Send>: Send, Arc<dyn AgendaStore>: Send, Arc<RwLock<Weak<AgendaInner>>>: Send, Arc<dyn AgentStore>: Send, Arc<dyn AgentFactory>: Send, Arc<RwLock<Weak<AgentsInner>>>: Send, Arc<dyn StandingRuleSource>: Send, NodeRef<Owned, PartitionId, Arc<dyn Consolidator>, LeafOrInternal>: Send, BoxRaw<(PartitionId, Arc<dyn Consolidator>)>: Send, Arc<Inner>: Send, NodeRef<Owned, PartitionId, Arc<dyn ObservationAudience>, LeafOrInternal>: Send, BoxRaw<(PartitionId, Arc<dyn ObservationAudience>)>: Send, Arc<dyn LedgerStore>: Send, Arc<LedgerKey>: Send, NodeRef<Owned, String, f64, LeafOrInternal>: Send, BoxRaw<(String, f64)>: Send, Arc<dyn ObservationPhraser>: Send, Arc<PartitionsInner>: Send, NodeRef<Owned, String, PartitionId, LeafOrInternal>: Send, BoxRaw<(String, PartitionId)>: Send, Arc<dyn CronWatermarkStore>: Send, Arc<dyn ApprovalStore>: Send, Arc<dyn ActionLedger>: Send, Arc<dyn GovernanceStateStore>: Send, Arc<dyn PartitionStore>: Send, Arc<dyn DeviceStore>: Send, Arc<dyn DriverStore>: Send, Arc<dyn ChannelBindingStore>: Send, Arc<dyn SignalStore>: Send, NodeRef<Owned, &'static str, SetValZST, LeafOrInternal>: Send, BoxRaw<(&'static str, SetValZST)>: Send, NodeRef<Owned, PartitionId, Arc<dyn SignalStore>, LeafOrInternal>: Send, BoxRaw<(PartitionId, Arc<dyn SignalStore>)>: Send, Arc<RwLock<WeakSubagents>>: Send, Arc<RwLock<Vec<SubagentTarget>>>: Send,

§

impl Sync for KernelBuilder
where RawVecInner: Sync, NodeRef<Owned, AgentId, SetValZST, LeafOrInternal>: Sync, BoxRaw<(AgentId, SetValZST)>: Sync, Arc<ControlState>: Sync, Arc<dyn RequestContextExtractor>: Sync, Arc<Inner>: Sync, Arc<dyn ControlStore>: Sync, Arc<dyn MemoryBook>: Sync, Arc<dyn RecordBook>: Sync, Arc<dyn CommandHost>: Sync, NodeRef<Owned, PartitionId, PartitionMode, LeafOrInternal>: Sync, BoxRaw<(PartitionId, PartitionMode)>: Sync, Arc<dyn Clock>: Sync, NodeRef<Owned, UsageUnit, u64, LeafOrInternal>: Sync, BoxRaw<(UsageUnit, u64)>: Sync, Arc<dyn DurableRunStore>: Sync, Arc<dyn ProcessStore>: Sync, Arc<dyn ScheduleStore>: Sync, Arc<dyn ApprovalService>: Sync, Arc<dyn SessionService>: Sync, Arc<dyn SpendLedger>: Sync, Arc<dyn AuditRecorder>: Sync, NodeRef<Owned, String, Arc<Runner>, LeafOrInternal>: Sync, BoxRaw<(String, Arc<Runner>)>: Sync, Arc<dyn WorkflowExecutor>: Sync, Arc<dyn CharterStore>: Sync, Arc<dyn KpiStore>: Sync, NodeRef<Owned, String, Arc<dyn KpiSource>, LeafOrInternal>: Sync, BoxRaw<(String, Arc<dyn KpiSource>)>: Sync, Arc<dyn JobControl>: Sync, Arc<dyn AutonomyStore>: Sync, Arc<dyn CharterEventSink>: Sync, Arc<dyn WakeSource>: Sync, NonZero<i32>: Sync, Utc: Sync, RawTable<usize>: Sync, NodeRef<Owned, String, String, LeafOrInternal>: Sync, BoxRaw<(String, String)>: Sync, Arc<dyn EventSink>: Sync, Arc<dyn ProgressSource>: Sync, Arc<dyn QueueSource>: Sync, Arc<dyn Fn(&QueueMessage) -> Result<NewRun, AdkError> + Sync + Send>: Sync, Arc<dyn AgendaStore>: Sync, Arc<RwLock<Weak<AgendaInner>>>: Sync, Arc<dyn AgentStore>: Sync, Arc<dyn AgentFactory>: Sync, Arc<RwLock<Weak<AgentsInner>>>: Sync, Arc<dyn StandingRuleSource>: Sync, NodeRef<Owned, PartitionId, Arc<dyn Consolidator>, LeafOrInternal>: Sync, BoxRaw<(PartitionId, Arc<dyn Consolidator>)>: Sync, Arc<Inner>: Sync, NodeRef<Owned, PartitionId, Arc<dyn ObservationAudience>, LeafOrInternal>: Sync, BoxRaw<(PartitionId, Arc<dyn ObservationAudience>)>: Sync, Arc<dyn LedgerStore>: Sync, Arc<LedgerKey>: Sync, NodeRef<Owned, String, f64, LeafOrInternal>: Sync, BoxRaw<(String, f64)>: Sync, Arc<dyn ObservationPhraser>: Sync, Arc<PartitionsInner>: Sync, NodeRef<Owned, String, PartitionId, LeafOrInternal>: Sync, BoxRaw<(String, PartitionId)>: Sync, Arc<dyn CronWatermarkStore>: Sync, Arc<dyn ApprovalStore>: Sync, Arc<dyn ActionLedger>: Sync, Arc<dyn GovernanceStateStore>: Sync, Arc<dyn PartitionStore>: Sync, Arc<dyn DeviceStore>: Sync, Arc<dyn DriverStore>: Sync, Arc<dyn ChannelBindingStore>: Sync, Arc<dyn SignalStore>: Sync, NodeRef<Owned, &'static str, SetValZST, LeafOrInternal>: Sync, BoxRaw<(&'static str, SetValZST)>: Sync, NodeRef<Owned, PartitionId, Arc<dyn SignalStore>, LeafOrInternal>: Sync, BoxRaw<(PartitionId, Arc<dyn SignalStore>)>: Sync, Arc<RwLock<WeakSubagents>>: Sync, Arc<RwLock<Vec<SubagentTarget>>>: Sync,

§

impl Unpin for KernelBuilder
where *const u8 is !null: Unpin, *const LeafNode<AgentId, SetValZST> is !null: Unpin, Box<(AgentId, SetValZST)>: Unpin, Arc<ControlState>: Unpin, Arc<dyn RequestContextExtractor>: Unpin, Arc<Inner>: Unpin, Arc<dyn ControlStore>: Unpin, Arc<dyn MemoryBook>: Unpin, Arc<dyn RecordBook>: Unpin, Arc<dyn CommandHost>: Unpin, *const LeafNode<PartitionId, PartitionMode> is !null: Unpin, Box<(PartitionId, PartitionMode)>: Unpin, Arc<dyn Clock>: Unpin, *const LeafNode<UsageUnit, u64> is !null: Unpin, Box<(UsageUnit, u64)>: Unpin, Arc<dyn DurableRunStore>: Unpin, Arc<dyn ProcessStore>: Unpin, Arc<dyn ScheduleStore>: Unpin, Arc<dyn ApprovalService>: Unpin, Arc<dyn SessionService>: Unpin, Arc<dyn SpendLedger>: Unpin, Arc<dyn AuditRecorder>: Unpin, *const LeafNode<String, Arc<Runner>> is !null: Unpin, Box<(String, Arc<Runner>)>: Unpin, Arc<dyn WorkflowExecutor>: Unpin, Arc<dyn CharterStore>: Unpin, Arc<dyn KpiStore>: Unpin, *const LeafNode<String, Arc<dyn KpiSource>> is !null: Unpin, Box<(String, Arc<dyn KpiSource>)>: Unpin, Arc<dyn JobControl>: Unpin, Arc<dyn AutonomyStore>: Unpin, Arc<dyn CharterEventSink>: Unpin, Arc<dyn WakeSource>: Unpin, NonZero<i32>: Unpin, Utc: Unpin, *const LeafNode<String, String> is !null: Unpin, Box<(String, String)>: Unpin, Arc<dyn EventSink>: Unpin, Arc<dyn ProgressSource>: Unpin, Arc<dyn QueueSource>: Unpin, Arc<dyn Fn(&QueueMessage) -> Result<NewRun, AdkError> + Sync + Send>: Unpin, Arc<dyn AgendaStore>: Unpin, Arc<RwLock<Weak<AgendaInner>>>: Unpin, Arc<dyn AgentStore>: Unpin, Arc<dyn AgentFactory>: Unpin, Arc<RwLock<Weak<AgentsInner>>>: Unpin, Arc<dyn StandingRuleSource>: Unpin, *const LeafNode<PartitionId, Arc<dyn Consolidator>> is !null: Unpin, Box<(PartitionId, Arc<dyn Consolidator>)>: Unpin, Arc<Inner>: Unpin, *const LeafNode<PartitionId, Arc<dyn ObservationAudience>> is !null: Unpin, Box<(PartitionId, Arc<dyn ObservationAudience>)>: Unpin, Arc<dyn LedgerStore>: Unpin, Arc<LedgerKey>: Unpin, *const LeafNode<String, f64> is !null: Unpin, Box<(String, f64)>: Unpin, Arc<dyn ObservationPhraser>: Unpin, Arc<PartitionsInner>: Unpin, *const LeafNode<String, PartitionId> is !null: Unpin, Box<(String, PartitionId)>: Unpin, Arc<dyn CronWatermarkStore>: Unpin, Arc<dyn ApprovalStore>: Unpin, Arc<dyn ActionLedger>: Unpin, Arc<dyn GovernanceStateStore>: Unpin, Arc<dyn PartitionStore>: Unpin, Arc<dyn DeviceStore>: Unpin, Arc<dyn DriverStore>: Unpin, Arc<dyn ChannelBindingStore>: Unpin, Arc<dyn SignalStore>: Unpin, *const LeafNode<&'static str, SetValZST> is !null: Unpin, Box<(&'static str, SetValZST)>: Unpin, *const LeafNode<PartitionId, Arc<dyn SignalStore>> is !null: Unpin, Box<(PartitionId, Arc<dyn SignalStore>)>: Unpin, Arc<RwLock<WeakSubagents>>: Unpin, Arc<RwLock<Vec<SubagentTarget>>>: Unpin,

§

impl UnsafeUnpin for KernelBuilder
where *const u8 is !null: UnsafeUnpin, PhantomData<u8>: UnsafeUnpin, PhantomData<QueueClass>: UnsafeUnpin, *const LeafNode<AgentId, SetValZST> is !null: UnsafeUnpin, PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin, PhantomData<Box<(AgentId, SetValZST)>>: UnsafeUnpin, *const ArcInner<ControlState> is !null: UnsafeUnpin, PhantomData<ArcInner<ControlState>>: UnsafeUnpin, *const ArcInner<dyn RequestContextExtractor> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn RequestContextExtractor>>: UnsafeUnpin, *const ArcInner<Inner> is !null: UnsafeUnpin, PhantomData<ArcInner<Inner>>: UnsafeUnpin, *const ArcInner<dyn ControlStore> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn ControlStore>>: UnsafeUnpin, *const ArcInner<dyn MemoryBook> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn MemoryBook>>: UnsafeUnpin, *const ArcInner<dyn RecordBook> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn RecordBook>>: UnsafeUnpin, *const ArcInner<dyn CommandHost> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn CommandHost>>: UnsafeUnpin, *const LeafNode<PartitionId, PartitionMode> is !null: UnsafeUnpin, PhantomData<Box<(PartitionId, PartitionMode)>>: UnsafeUnpin, PhantomData<(PartitionMode, String)>: UnsafeUnpin, *const ArcInner<dyn Clock> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn Clock>>: UnsafeUnpin, *const LeafNode<UsageUnit, u64> is !null: UnsafeUnpin, PhantomData<Box<(UsageUnit, u64)>>: UnsafeUnpin, *const ArcInner<dyn DurableRunStore> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn DurableRunStore>>: UnsafeUnpin, *const ArcInner<dyn ProcessStore> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn ProcessStore>>: UnsafeUnpin, *const ArcInner<dyn ScheduleStore> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn ScheduleStore>>: UnsafeUnpin, *const ArcInner<dyn ApprovalService> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn ApprovalService>>: UnsafeUnpin, *const ArcInner<dyn SessionService> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn SessionService>>: UnsafeUnpin, *const ArcInner<dyn SpendLedger> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn SpendLedger>>: UnsafeUnpin, *const ArcInner<dyn AuditRecorder> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn AuditRecorder>>: UnsafeUnpin, *const LeafNode<String, Arc<Runner>> is !null: UnsafeUnpin, PhantomData<Box<(String, Arc<Runner>)>>: UnsafeUnpin, PhantomData<Arc<dyn WorkflowExecutor>>: UnsafeUnpin, PhantomData<KpiTracker>: UnsafeUnpin, PhantomData<Arc<dyn WakeSource>>: UnsafeUnpin, PhantomData<Trigger>: UnsafeUnpin, PhantomData<Arc<dyn EventSink>>: UnsafeUnpin, *const ArcInner<dyn ProgressSource> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn ProgressSource>>: UnsafeUnpin, PhantomData<(PartitionId, Arc<dyn ProgressSource>)>: UnsafeUnpin, PhantomData<QueueIngress>: UnsafeUnpin, *const ArcInner<dyn AgendaStore> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn AgendaStore>>: UnsafeUnpin, PhantomData<AgendaHandle>: UnsafeUnpin, *const ArcInner<dyn AgentStore> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn AgentStore>>: UnsafeUnpin, *const ArcInner<dyn AgentFactory> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn AgentFactory>>: UnsafeUnpin, PhantomData<AgentsHandle>: UnsafeUnpin, *const ArcInner<dyn StandingRuleSource> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn StandingRuleSource>>: UnsafeUnpin, *const LeafNode<PartitionId, Arc<dyn Consolidator>> is !null: UnsafeUnpin, PhantomData<Box<(PartitionId, Arc<dyn Consolidator>)>>: UnsafeUnpin, *const ArcInner<Inner> is !null: UnsafeUnpin, PhantomData<ArcInner<Inner>>: UnsafeUnpin, *const LeafNode<PartitionId, Arc<dyn ObservationAudience>> is !null: UnsafeUnpin, PhantomData<Box<(PartitionId, Arc<dyn ObservationAudience>)>>: UnsafeUnpin, *const ArcInner<dyn LedgerStore> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn LedgerStore>>: UnsafeUnpin, *const ArcInner<LedgerKey> is !null: UnsafeUnpin, PhantomData<ArcInner<LedgerKey>>: UnsafeUnpin, *const LeafNode<String, f64> is !null: UnsafeUnpin, PhantomData<Box<(String, f64)>>: UnsafeUnpin, *const ArcInner<dyn ObservationPhraser> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn ObservationPhraser>>: UnsafeUnpin, *const ArcInner<PartitionsInner> is !null: UnsafeUnpin, PhantomData<ArcInner<PartitionsInner>>: UnsafeUnpin, *const LeafNode<String, PartitionId> is !null: UnsafeUnpin, PhantomData<Box<(String, PartitionId)>>: UnsafeUnpin, *const ArcInner<dyn CronWatermarkStore> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn CronWatermarkStore>>: UnsafeUnpin, *const ArcInner<dyn ApprovalStore> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn ApprovalStore>>: UnsafeUnpin, *const ArcInner<dyn ActionLedger> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn ActionLedger>>: UnsafeUnpin, *const ArcInner<dyn GovernanceStateStore> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn GovernanceStateStore>>: UnsafeUnpin, *const ArcInner<dyn PartitionStore> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn PartitionStore>>: UnsafeUnpin, *const ArcInner<dyn DeviceStore> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn DeviceStore>>: UnsafeUnpin, *const ArcInner<dyn DriverStore> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn DriverStore>>: UnsafeUnpin, *const ArcInner<dyn ChannelBindingStore> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn ChannelBindingStore>>: UnsafeUnpin, *const ArcInner<dyn CharterStore> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn CharterStore>>: UnsafeUnpin, *const ArcInner<dyn KpiStore> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn KpiStore>>: UnsafeUnpin, *const ArcInner<dyn AutonomyStore> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn AutonomyStore>>: UnsafeUnpin, *const ArcInner<dyn SignalStore> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn SignalStore>>: UnsafeUnpin, *const LeafNode<&'static str, SetValZST> is !null: UnsafeUnpin, PhantomData<Box<(&'static str, SetValZST)>>: UnsafeUnpin, *const LeafNode<PartitionId, Arc<dyn SignalStore>> is !null: UnsafeUnpin, PhantomData<Box<(PartitionId, Arc<dyn SignalStore>)>>: UnsafeUnpin, PhantomData<InventoryWarning>: UnsafeUnpin, PhantomData<SubagentTarget>: UnsafeUnpin, PhantomData<SubagentHandle>: UnsafeUnpin,

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

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

Source§

impl<T> Conv for T

Source§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
Source§

impl<T> FmtForward for T

Source§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
Source§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
Source§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
Source§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
Source§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
Source§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
Source§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
Source§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
Source§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FutureExt for T

Source§

fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Source§

fn with_current_context(self) -> WithContext<Self> ⓘ

Attaches the current Context to this type, returning a WithContext wrapper. Read more
Source§

impl<T> Instrument for T

Source§

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

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

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
Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

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

impl<L> LayerExt<L> for L

Source§

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.
Source§

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

Source§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
Source§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
Source§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
Source§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
Source§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
Source§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
Source§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

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

Initializes a with the given initializer. Read more
Source§

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

Dereferences the given pointer. Read more
Source§

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

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

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

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

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

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

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Tap for T

Source§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
Source§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
Source§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
Source§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
Source§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
Source§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
Source§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
Source§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
Source§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
Source§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
Source§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
Source§

impl<T> TryConv for T

Source§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.
Source§

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

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

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
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

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