Skip to main content

TenantKernelBuilder

Struct TenantKernelBuilder 

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

Builds TenantKernel (spec 3.2 §7.13, §10 M1).

Implementations§

Source§

impl TenantKernelBuilder

Source

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

Sets the kernel configuration. Its app_name is replaced by the tenant and its control plane cleared — every tenant’s kernel would otherwise open the socket of one shared home — and its proactivity policy gives the limits of a tenant whose definitions set none, with the consolidation tick off (spec 3.2 §13 Q1). Serve a tenant’s control plane by mounting control::router(kernel) on the host’s server.

Source

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

Sets the process side table, the tenant’s own. Defaults to in memory.

Source

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

Sets the schedule store the kernel’s scheduler fires, the tenant’s own.

Source

pub fn resolver(self, resolver: Arc<dyn AgentResolver>) -> Self

Builds the definitions’ agents with resolver, such as adk-harness’s HarnessResolver. A definition with a kernel block needs an agent it builds.

Source

pub fn action_ledger(self, ledger: Arc<dyn ActionLedger>) -> Self

Sets the action ledger the kernel’s runs record non-idempotent calls in, so a resumed process never runs a completed call again (K-I4).

Source

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

Sets the spend ledger.

Source

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

Sets the signed audit trail of the kernel’s records.

Source

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

Sets the kill switch, such as one mirrored across the tenant’s replicas; it replaces the configuration’s.

Source

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

Sets the agenda’s store, the tenant’s own. Defaults to in memory.

Source

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

Binds handle to every kernel the tenant builds, such as the handle the tenant’s harnesses were given (HarnessAgentBuilder::agenda_handle), so their follow-ups reach the tenant’s agenda (spec 3.2 §7.5). Defaults to a new handle.

Source

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

Registers consolidator for partition: the tenant’s kernel runs its consolidation tick there when a hosted definition’s policy turns the tick on (spec 3.2 §7.5, §13 Q1).

Source

pub fn partition_store(self, store: Arc<dyn PartitionStore>) -> Self

Sets the tenant’s partition table and crossing ledger, the tenant’s own (spec 3.2 §7.8). Defaults to in memory.

Source

pub fn partition_resolver( self, resolver: Arc<dyn PartitionAgentResolver>, ) -> Self

Builds one agent per partition a definition declares with resolver, such as adk-harness’s HarnessResolver: one harness per partition (spec 3.2 §7.8). Without one, a definition’s partitions are recorded and its agent runs in the default partition.

Source

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

Sets where the tenant’s cron sources keep their watermarks, the tenant’s own (spec 3.2 §7.4, §7.13): on a durable store, a tick missed while no replica of the tenant ran fires once each as the wake set’s missed policy picks it, when the next replica starts. Defaults to in memory, which keeps nothing across a restart.

Source

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

Mounts the drivers the tenant’s definitions ask for on drivers, the tenant’s own supervisor over the tenant’s own driver store (spec 3.2 §7.7, §7.13). Each driver a definition’s partition mounts is proposed in the tenant’s approval inbox and mounted when a person approves it; its tools reach that partition’s harness only. Its drivers run as the tenant’s app under <kernel home>/tenants/<tenant> unless the supervisor’s builder set an app name or a home. Without one, a definition’s driver manifests are recorded and none is mounted.

Source

pub fn driver_approvers(self, approvers: ApprovalPolicy) -> Self

Who approves a driver mount: by default anyone in the operator group, as the control plane’s operators are. Only a person’s approval mounts a driver.

Source

pub fn signal_store(self, store: Arc<dyn SignalStore>) -> Self

Sets where the tenant’s signals are counted, the tenant’s own (spec 3.5 §7.10; feature charter): TenantKernel::signal_sink files them, and a definition whose wake set hears a signal is hosted only on a tenant with one. Defaults to none.

SignalStore runs on in-memory, SQLite, PostgreSQL and Redis; a tenant whose other stores are on MongoDB, Firestore or Neo4j keeps its signals on one of those.

Source

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

Takes the tenant’s stateful stores the builder has no other from stores, the tenant’s own (spec 3.2 §7.1, §7.13): the process side table, schedules, spend and action ledgers, agenda, partition table, cron watermarks, agent table and, with the charter feature, the signal store; the kill switch mirrored over governance unless governance is set or the bundle keeps it in memory. A store set on the builder wins. The run store and the approvals are the tenant’s ManagedStores’.

§Example
use std::sync::Arc;
use adk_kernel::managed::TenantKernel;
use adk_kernel::stores::KernelStores;
use adk_managed::ManagedStores;
use adk_session::InMemorySessionService;

let stores = KernelStores::in_memory();
let tenant = TenantKernel::builder("tenant-a", ManagedStores::in_memory(), Arc::new(InMemorySessionService::new()))
    .stores(&stores)
    .build()?;
assert!(Arc::ptr_eq(tenant.process_store(), &stores.processes));
Source

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

Builds the tenant’s kernel. Nothing runs until TenantKernel::start. Each store neither set nor in the builder’s stores is kept in memory, with a warning naming it.

§Errors

Returns KernelError::Config when the tenant is blank.

Trait Implementations§

Source§

impl Debug for TenantKernelBuilder

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for TenantKernelBuilder

§

impl !UnwindSafe for TenantKernelBuilder

§

impl Forget for TenantKernelBuilder

§

impl Freeze for TenantKernelBuilder
where *const u8 is !null: Freeze, PhantomData<u8>: Freeze, *const ArcInner<dyn ManagedStateStore> is !null: Freeze, PhantomData<ArcInner<dyn ManagedStateStore>>: Freeze, *const ArcInner<dyn DurableRunStore> is !null: Freeze, PhantomData<ArcInner<dyn DurableRunStore>>: Freeze, *const ArcInner<dyn ApprovalStore> is !null: Freeze, PhantomData<ArcInner<dyn ApprovalStore>>: 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, 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 ProcessStore> is !null: Freeze, PhantomData<ArcInner<dyn ProcessStore>>: Freeze, *const ArcInner<dyn ScheduleStore> is !null: Freeze, PhantomData<ArcInner<dyn ScheduleStore>>: Freeze, *const ArcInner<dyn AgentResolver> is !null: Freeze, PhantomData<ArcInner<dyn AgentResolver>>: Freeze, *const ArcInner<dyn ActionLedger> is !null: Freeze, PhantomData<ArcInner<dyn ActionLedger>>: 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 ArcInner<dyn AgendaStore> is !null: Freeze, PhantomData<ArcInner<dyn AgendaStore>>: Freeze, *const ArcInner<RwLock<Weak<AgendaInner>>> is !null: Freeze, PhantomData<ArcInner<RwLock<Weak<AgendaInner>>>>: Freeze, *const LeafNode<PartitionId, Arc<dyn Consolidator>> is !null: Freeze, PhantomData<Box<(PartitionId, Arc<dyn Consolidator>)>>: Freeze, *const ArcInner<dyn PartitionStore> is !null: Freeze, PhantomData<ArcInner<dyn PartitionStore>>: Freeze, *const ArcInner<dyn PartitionAgentResolver> is !null: Freeze, PhantomData<ArcInner<dyn PartitionAgentResolver>>: Freeze, *const ArcInner<dyn CronWatermarkStore> is !null: Freeze, PhantomData<ArcInner<dyn CronWatermarkStore>>: Freeze, *const ArcInner<Inner> is !null: Freeze, PhantomData<ArcInner<Inner>>: Freeze, PhantomData<ApproverSelector>: Freeze, PhantomData<EscalationStep>: Freeze, *const ArcInner<dyn SignalStore> is !null: Freeze, PhantomData<ArcInner<dyn SignalStore>>: Freeze, *const ArcInner<dyn GovernanceStateStore> is !null: Freeze, PhantomData<ArcInner<dyn GovernanceStateStore>>: Freeze, *const ArcInner<dyn AgentStore> is !null: Freeze, PhantomData<ArcInner<dyn AgentStore>>: 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 LedgerStore> is !null: Freeze, PhantomData<ArcInner<dyn LedgerStore>>: 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 LeafNode<&'static str, SetValZST> is !null: Freeze, PhantomData<Box<(&'static str, SetValZST)>>: Freeze,

§

impl Move for TenantKernelBuilder

§

impl Send for TenantKernelBuilder
where RawVecInner: Send, Arc<dyn ManagedStateStore>: Send, Arc<dyn DurableRunStore>: Send, Arc<dyn ApprovalStore>: Send, Arc<dyn ApprovalService>: Send, Arc<dyn SessionService>: 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 ProcessStore>: Send, Arc<dyn ScheduleStore>: Send, Arc<dyn AgentResolver>: Send, Arc<dyn ActionLedger>: Send, Arc<dyn SpendLedger>: Send, Arc<dyn AuditRecorder>: Send, Arc<dyn AgendaStore>: Send, Arc<RwLock<Weak<AgendaInner>>>: Send, NodeRef<Owned, PartitionId, Arc<dyn Consolidator>, LeafOrInternal>: Send, BoxRaw<(PartitionId, Arc<dyn Consolidator>)>: Send, Arc<dyn PartitionStore>: Send, Arc<dyn PartitionAgentResolver>: Send, Arc<dyn CronWatermarkStore>: Send, Arc<Inner>: Send, Arc<dyn SignalStore>: Send, Arc<dyn GovernanceStateStore>: Send, Arc<dyn AgentStore>: Send, Arc<dyn DeviceStore>: Send, Arc<dyn DriverStore>: Send, Arc<dyn LedgerStore>: Send, Arc<dyn ChannelBindingStore>: Send, Arc<dyn CharterStore>: Send, Arc<dyn KpiStore>: Send, Arc<dyn AutonomyStore>: Send, NodeRef<Owned, &'static str, SetValZST, LeafOrInternal>: Send, BoxRaw<(&'static str, SetValZST)>: Send,

§

impl Sync for TenantKernelBuilder
where RawVecInner: Sync, Arc<dyn ManagedStateStore>: Sync, Arc<dyn DurableRunStore>: Sync, Arc<dyn ApprovalStore>: Sync, Arc<dyn ApprovalService>: Sync, Arc<dyn SessionService>: 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 ProcessStore>: Sync, Arc<dyn ScheduleStore>: Sync, Arc<dyn AgentResolver>: Sync, Arc<dyn ActionLedger>: Sync, Arc<dyn SpendLedger>: Sync, Arc<dyn AuditRecorder>: Sync, Arc<dyn AgendaStore>: Sync, Arc<RwLock<Weak<AgendaInner>>>: Sync, NodeRef<Owned, PartitionId, Arc<dyn Consolidator>, LeafOrInternal>: Sync, BoxRaw<(PartitionId, Arc<dyn Consolidator>)>: Sync, Arc<dyn PartitionStore>: Sync, Arc<dyn PartitionAgentResolver>: Sync, Arc<dyn CronWatermarkStore>: Sync, Arc<Inner>: Sync, Arc<dyn SignalStore>: Sync, Arc<dyn GovernanceStateStore>: Sync, Arc<dyn AgentStore>: Sync, Arc<dyn DeviceStore>: Sync, Arc<dyn DriverStore>: Sync, Arc<dyn LedgerStore>: Sync, Arc<dyn ChannelBindingStore>: Sync, Arc<dyn CharterStore>: Sync, Arc<dyn KpiStore>: Sync, Arc<dyn AutonomyStore>: Sync, NodeRef<Owned, &'static str, SetValZST, LeafOrInternal>: Sync, BoxRaw<(&'static str, SetValZST)>: Sync,

§

impl Unpin for TenantKernelBuilder
where *const u8 is !null: Unpin, Arc<dyn ManagedStateStore>: Unpin, Arc<dyn DurableRunStore>: Unpin, Arc<dyn ApprovalStore>: Unpin, Arc<dyn ApprovalService>: Unpin, Arc<dyn SessionService>: 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 ProcessStore>: Unpin, Arc<dyn ScheduleStore>: Unpin, Arc<dyn AgentResolver>: Unpin, Arc<dyn ActionLedger>: Unpin, Arc<dyn SpendLedger>: Unpin, Arc<dyn AuditRecorder>: Unpin, Arc<dyn AgendaStore>: Unpin, Arc<RwLock<Weak<AgendaInner>>>: Unpin, *const LeafNode<PartitionId, Arc<dyn Consolidator>> is !null: Unpin, Box<(PartitionId, Arc<dyn Consolidator>)>: Unpin, Arc<dyn PartitionStore>: Unpin, Arc<dyn PartitionAgentResolver>: Unpin, Arc<dyn CronWatermarkStore>: Unpin, Arc<Inner>: Unpin, Arc<dyn SignalStore>: Unpin, Arc<dyn GovernanceStateStore>: Unpin, Arc<dyn AgentStore>: Unpin, Arc<dyn DeviceStore>: Unpin, Arc<dyn DriverStore>: Unpin, Arc<dyn LedgerStore>: Unpin, Arc<dyn ChannelBindingStore>: Unpin, Arc<dyn CharterStore>: Unpin, Arc<dyn KpiStore>: Unpin, Arc<dyn AutonomyStore>: Unpin, *const LeafNode<&'static str, SetValZST> is !null: Unpin, Box<(&'static str, SetValZST)>: Unpin,

§

impl UnsafeUnpin for TenantKernelBuilder
where *const u8 is !null: UnsafeUnpin, PhantomData<u8>: UnsafeUnpin, *const ArcInner<dyn ManagedStateStore> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn ManagedStateStore>>: UnsafeUnpin, *const ArcInner<dyn DurableRunStore> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn DurableRunStore>>: UnsafeUnpin, *const ArcInner<dyn ApprovalStore> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn ApprovalStore>>: 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, 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 ProcessStore> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn ProcessStore>>: UnsafeUnpin, *const ArcInner<dyn ScheduleStore> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn ScheduleStore>>: UnsafeUnpin, *const ArcInner<dyn AgentResolver> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn AgentResolver>>: UnsafeUnpin, *const ArcInner<dyn ActionLedger> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn ActionLedger>>: 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 ArcInner<dyn AgendaStore> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn AgendaStore>>: UnsafeUnpin, *const ArcInner<RwLock<Weak<AgendaInner>>> is !null: UnsafeUnpin, PhantomData<ArcInner<RwLock<Weak<AgendaInner>>>>: UnsafeUnpin, *const LeafNode<PartitionId, Arc<dyn Consolidator>> is !null: UnsafeUnpin, PhantomData<Box<(PartitionId, Arc<dyn Consolidator>)>>: UnsafeUnpin, *const ArcInner<dyn PartitionStore> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn PartitionStore>>: UnsafeUnpin, *const ArcInner<dyn PartitionAgentResolver> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn PartitionAgentResolver>>: UnsafeUnpin, *const ArcInner<dyn CronWatermarkStore> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn CronWatermarkStore>>: UnsafeUnpin, *const ArcInner<Inner> is !null: UnsafeUnpin, PhantomData<ArcInner<Inner>>: UnsafeUnpin, PhantomData<ApproverSelector>: UnsafeUnpin, PhantomData<EscalationStep>: UnsafeUnpin, *const ArcInner<dyn SignalStore> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn SignalStore>>: UnsafeUnpin, *const ArcInner<dyn GovernanceStateStore> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn GovernanceStateStore>>: UnsafeUnpin, *const ArcInner<dyn AgentStore> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn AgentStore>>: 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 LedgerStore> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn LedgerStore>>: 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 LeafNode<&'static str, SetValZST> is !null: UnsafeUnpin, PhantomData<Box<(&'static str, SetValZST)>>: 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