pub struct ServerBuilder { /* private fields */ }server only.Expand description
Builder for constructing an ADK server with custom routes.
ServerBuilder allows registering additional Axum routers alongside the
built-in REST and A2A routes. Custom routes benefit from the same
middleware stack (host and origin checks, auth, CORS, tracing, timeout,
security headers) as the built-in routes.
The host and origin checks follow SecurityConfig: by
default only loopback names and IP addresses are answered, and no other origin may
call the server from a browser.
§Example
use adk_server::{ServerBuilder, ServerConfig};
use axum::{Router, routing::get};
let config = ServerConfig::new(agent, session_service);
let app = ServerBuilder::new(config)
.add_api_routes(
Router::new()
.route("/projects", get(list_projects))
.route("/projects/{id}", get(get_project))
)
.add_api_routes(
Router::new()
.route("/automations", get(list_automations))
)
.with_a2a("http://localhost:8080")
.build();
let listener = tokio::net::TcpListener::bind("127.0.0.1:8080").await?;
axum::serve(listener, app).await?;Implementations§
Source§impl ServerBuilder
impl ServerBuilder
Sourcepub fn new(config: ServerConfig) -> ServerBuilder
pub fn new(config: ServerConfig) -> ServerBuilder
Create a new server builder with the given configuration.
Sourcepub fn with_ag_ui_extension(
self,
extension: Arc<dyn AgUiExtension>,
) -> ServerBuilder
pub fn with_ag_ui_extension( self, extension: Arc<dyn AgUiExtension>, ) -> ServerBuilder
Adds extension to protocol-native AG-UI runs, and its features to ag_ui in
GET /api/ui/capabilities (spec 3.3 §6.1 genui; see
RuntimeController::with_ag_ui_extension).
§Example
let app = ServerBuilder::new(config).with_ag_ui_extension(Arc::new(extension)).build();Sourcepub fn add_api_routes(self, routes: Router) -> ServerBuilder
pub fn add_api_routes(self, routes: Router) -> ServerBuilder
Sourcepub fn add_root_routes(self, routes: Router) -> ServerBuilder
pub fn add_root_routes(self, routes: Router) -> ServerBuilder
Add custom routes at the root level (not nested under /api).
These routes, such as the web home of adk-surface’s web feature, are merged at
the top level of the application, alongside the A2A routes. They receive the full
middleware stack (CORS, tracing, timeout, security headers, host and origin checks)
but NOT the auth middleware.
Use this for routes that need their own auth handling or public endpoints.
Sourcepub fn awp(self, edge: AwpEdge) -> ServerBuilder
Available on crate feature awp only.
pub fn awp(self, edge: AwpEdge) -> ServerBuilder
awp only.Mounts the AWP 2.0 agent edge (spec 3.5 §7.9) through
add_root_routes, so the host guard, CORS, timeouts and security
headers apply, and attaches the server’s kill switch to it unless it carries its own.
The edge serves /.well-known/agent-card.json; with an edge mounted,
with_a2a keeps its JSON-RPC routes but not its card route.
§Example
let app = ServerBuilder::new(config).awp(edge).build();Sourcepub fn with_a2a(self, base_url: impl Into<String>) -> ServerBuilder
pub fn with_a2a(self, base_url: impl Into<String>) -> ServerBuilder
Enable A2A protocol support at the specified base URL.
The base URL is used to construct the agent card’s endpoint URLs.
With the a2a-v1 feature, the root agent is served over A2A v1
(a2a::v1::server::A2aV1Server):
- the JSON-RPC binding at
/a2a/v1; - the HTTP+JSON binding under
/a2a/v1/rest; - the v1 card at
/.well-known/agent-card.json.
The A2A 0.3 endpoint stays at /a2a (and /a2a/stream), with its card at
/.well-known/agent.json. The v1 card also lists it, as its last interface with
protocolVersion 0.3; a v1 card has no top-level url, so a 0.3 peer reads the
0.3 card.
Without a2a-v1, only A2A 0.3 is served, and its card is at both paths.
Sourcepub fn with_skill_index(self, skill_index: Arc<SkillIndex>) -> ServerBuilder
pub fn with_skill_index(self, skill_index: Arc<SkillIndex>) -> ServerBuilder
Expose the skills in skill_index on the A2A agent card.
When A2A is enabled via with_a2a, the served agent
card appends one skills[] entry per indexed
skill, mapped by agent_skills_from_index.
Has no effect without with_a2a.
§Example
use adk_server::{ServerBuilder, ServerConfig};
use std::sync::Arc;
let index = adk_skill::load_skill_index(".")?;
let app = ServerBuilder::new(config)
.with_a2a("http://localhost:8080")
.with_skill_index(Arc::new(index))
.build();Sourcepub fn with_a2a_task_retention(
self,
retention: A2aTaskRetention,
) -> ServerBuilder
pub fn with_a2a_task_retention( self, retention: A2aTaskRetention, ) -> ServerBuilder
Bound how many finished A2A task records the server keeps, and for how long.
Defaults to A2aTaskRetention::default: the newest 1,000 records, each for
at most one hour. Has no effect without with_a2a.
§Example
use adk_server::{A2aTaskRetention, ServerBuilder};
use std::time::Duration;
let app = ServerBuilder::new(config)
.with_a2a("http://localhost:8080")
.with_a2a_task_retention(A2aTaskRetention::default().with_ttl(Duration::from_secs(300)))
.build();Sourcepub fn with_background_runs(self, state: BackgroundState) -> ServerBuilder
Available on crate feature background only.
pub fn with_background_runs(self, state: BackgroundState) -> ServerBuilder
background only.Mount the background run endpoints under /api, behind the auth middleware.
Serves POST /api/runs, GET /api/runs, GET /api/runs/{run_id}, and
DELETE /api/runs/{run_id} from state, and starts its embedded worker when the
router is built inside a Tokio runtime. The state obeys
ServerConfig::governance unless it carries its own control. When a
RequestContextExtractor is configured, every request must authenticate, and an
authenticated run belongs to the caller’s user id: the caller lists, reads, cancels,
and wakes only their own runs, another owner’s run answers 404, and the caller’s
idempotency and concurrency keys are scoped to the caller. Without one the routes run
in open mode, and build logs a warning
that says so. Mounting
background_runs_router_with_state
yourself skips that layer.
§Example
use adk_server::background::BackgroundState;
let app = ServerBuilder::new(config)
.with_background_runs(BackgroundState::new().with_executor(executor))
.build();Sourcepub fn with_cron_jobs(self, state: CronState) -> ServerBuilder
Available on crate feature background only.
pub fn with_cron_jobs(self, state: CronState) -> ServerBuilder
background only.Mount the cron job endpoints under /api, behind the auth middleware.
Serves POST /api/cron, GET /api/cron, and GET/PATCH/DELETE /api/cron/{job_id} from state. The scheduler is not started here — call
start_cron_scheduler with a
clone of the same state on every replica; each fire time is enqueued once. Without a
RequestContextExtractor the routes run in
open mode, and build logs a warning
that says so.
§Example
use adk_server::background::{BackgroundState, CronState, start_cron_scheduler};
let cron_state = CronState::new(BackgroundState::new());
start_cron_scheduler(cron_state.clone());
let app = ServerBuilder::new(config).with_cron_jobs(cron_state).build();Sourcepub fn with_webhook_ingress(self, ingress: WebhookIngress) -> ServerBuilder
Available on crate feature webhook-ingress only.
pub fn with_webhook_ingress(self, ingress: WebhookIngress) -> ServerBuilder
webhook-ingress only.Mount POST /hooks/{name}: each signed delivery enqueues a durable run.
The route is served at the root, outside /api and without the auth middleware:
the Standard Webhooks signature is the authentication. When ingress has no kill
switch of its own, ServerConfig::governance is installed, so a freeze refuses
deliveries with 503. Runs execute when a worker claims them from the ingress’s
run store.
§Example
use adk_server::webhooks::{WebhookHook, WebhookIngress};
let ingress = WebhookIngress::new(run_store.clone())
.with_hook(WebhookHook::new("billing", verifier, "billing", "invoice_agent"));
let app = ServerBuilder::new(config).with_webhook_ingress(ingress).build();Sourcepub fn enable_shutdown_endpoint(self) -> ServerBuilder
pub fn enable_shutdown_endpoint(self) -> ServerBuilder
Enable the POST /api/shutdown endpoint for graceful shutdown.
When enabled, the server exposes a shutdown endpoint that triggers
graceful shutdown: stops accepting new connections, completes in-flight
requests, and then exits. Use build_with_shutdown
to get the ShutdownHandle for wiring into axum::serve().with_graceful_shutdown().
The endpoint is protected by the auth middleware when a
RequestContextExtractor is configured.
Sourcepub fn enable_governance_endpoints(self) -> ServerBuilder
pub fn enable_governance_endpoints(self) -> ServerBuilder
Mount the governance admin endpoints under /api/admin, behind the auth middleware.
| Route | Effect |
|---|---|
POST /api/admin/freeze | Freezes ServerConfig::governance, failing new runs and stopping running ones before their next model or tool call; background workers stop claiming and schedules stop firing; running durable runs are asked to cancel, or parked by the FreezeDelegate registered with with_freeze_delegate. A mirrored control writes the freeze to the shared store, so it reaches every replica. Body: {"reason": "..."}; answers the status with parkedRuns and cancelledRuns |
POST /api/admin/unfreeze | Lifts the freeze; a delegate also resumes what the freeze parked |
GET /api/admin/governance | Reports {"frozen", "reason", "mirrored", "stale", "runningRuns"}, where runningRuns is park under a delegate and cancel otherwise |
The endpoints sit behind the auth middleware, and the freeze and the unfreeze admit
only an administrator: a caller whose
RequestContext::scopes include
SecurityConfig::admin_scope ("admin" by
default). An authenticated caller without it is refused with 403
(governance.forbidden). Without a RequestContextExtractor no request has a caller,
so both are refused with 401 (governance.unauthenticated); the status stays
readable.
§Example
let app = ServerBuilder::new(config).enable_governance_endpoints().build();Sourcepub fn with_freeze_delegate(
self,
delegate: Arc<dyn FreezeDelegate>,
) -> ServerBuilder
pub fn with_freeze_delegate( self, delegate: Arc<dyn FreezeDelegate>, ) -> ServerBuilder
Hands the governance endpoints’ freezes and unfreezes to delegate (spec 3.2 §10
S4), so POST /api/admin/freeze parks the running runs the delegate supervises
instead of cancelling the background run stores’ runs, and POST /api/admin/unfreeze
resumes them. A kernel registers itself here. Implies
enable_governance_endpoints, so the delegate is
reached only by an administrator’s request.
§Example
let app = ServerBuilder::new(config).with_freeze_delegate(kernel).build();Sourcepub fn with_approval_service(
self,
service: Arc<dyn ApprovalService>,
) -> ServerBuilder
Available on crate feature approvals only.
pub fn with_approval_service( self, service: Arc<dyn ApprovalService>, ) -> ServerBuilder
approvals only.Mount the approval inbox endpoints for service under /api/approvals, behind
the auth middleware. See crate::approvals for the routes.
Protocol-native AG-UI runs route the calls they hold to service as well: each ends
the run with an AG-UI interrupt naming its inbox entry, and a later AG-UI resume
decides the entry (spec 3.3 §10 S2,
RuntimeController::with_approval_service).
The endpoints need an authenticated caller, so configure a
RequestContextExtractor; without one every route answers 401. Run
spawn_approval_ticker as well so
requests expire and escalate.
§Example
let app = ServerBuilder::new(config).with_approval_service(service).build();Sourcepub fn with_approval_endpoints(
self,
endpoints: ApprovalEndpoints,
) -> ServerBuilder
Available on crate feature approvals only.
pub fn with_approval_endpoints( self, endpoints: ApprovalEndpoints, ) -> ServerBuilder
approvals only.Serves endpoints as with_approval_service serves its
service: the endpoints keep what they were built with, such as a
DecideGuard that checks each decision (spec 3.3
§7.2).
§Example
let endpoints = ApprovalEndpoints::new(service).with_decide_guard(guard);
let app = ServerBuilder::new(config).with_approval_endpoints(endpoints).build();Sourcepub fn build(self) -> Router
pub fn build(self) -> Router
Build the final Axum router with all routes and middleware applied.
Sourcepub fn build_with_shutdown(self) -> (Router, ShutdownHandle)
pub fn build_with_shutdown(self) -> (Router, ShutdownHandle)
Build the final Axum router and return a ShutdownHandle.
Use this when enable_shutdown_endpoint() is set.
Pass the handle’s signal to axum::serve().with_graceful_shutdown().
§Example
let (app, shutdown_handle) = ServerBuilder::new(config)
.enable_shutdown_endpoint()
.build_with_shutdown();
let listener = tokio::net::TcpListener::bind("127.0.0.1:8080").await?;
axum::serve(listener, app)
.with_graceful_shutdown(shutdown_handle.signal())
.await?;Auto Trait Implementations§
impl !RefUnwindSafe for ServerBuilder
impl !UnwindSafe for ServerBuilder
impl Forget for ServerBuilder
impl Freeze for ServerBuilderwhere
*const ArcInner<dyn AgentLoader> is !null: Freeze,
PhantomData<ArcInner<dyn AgentLoader>>: Freeze,
*const ArcInner<dyn SessionService> is !null: Freeze,
PhantomData<ArcInner<dyn SessionService>>: Freeze,
*const ArcInner<dyn ArtifactService> is !null: Freeze,
PhantomData<ArcInner<dyn ArtifactService>>: Freeze,
*const ArcInner<dyn Memory> is !null: Freeze,
PhantomData<ArcInner<dyn Memory>>: Freeze,
*const ArcInner<dyn BaseEventsSummarizer> is !null: Freeze,
PhantomData<ArcInner<dyn BaseEventsSummarizer>>: Freeze,
*const ArcInner<dyn CacheCapable> is !null: Freeze,
PhantomData<ArcInner<dyn CacheCapable>>: Freeze,
*const ArcInner<AdkSpanExporter> is !null: Freeze,
PhantomData<ArcInner<AdkSpanExporter>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const ArcInner<dyn RequestContextExtractor> is !null: Freeze,
PhantomData<ArcInner<dyn RequestContextExtractor>>: Freeze,
*const ArcInner<ControlState> is !null: Freeze,
PhantomData<ArcInner<ControlState>>: Freeze,
*const ArcInner<Mutex<HashMap<AdkIdentity, usize>>> is !null: Freeze,
PhantomData<ArcInner<Mutex<HashMap<AdkIdentity, usize>>>>: Freeze,
PhantomData<Router>: Freeze,
*const ArcInner<dyn FreezeDelegate> is !null: Freeze,
PhantomData<ArcInner<dyn FreezeDelegate>>: Freeze,
*const ArcInner<SkillIndex> is !null: Freeze,
PhantomData<ArcInner<SkillIndex>>: Freeze,
*const ArcInner<dyn DurableRunStore> is !null: Freeze,
PhantomData<ArcInner<dyn DurableRunStore>>: Freeze,
*const ArcInner<dyn WorkflowExecutor> is !null: Freeze,
PhantomData<ArcInner<dyn WorkflowExecutor>>: Freeze,
*const LeafNode<String, Arc<Runner>> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Arc<Runner>)>>: Freeze,
*const ArcInner<RwLock<Option<GovernanceControl>>> is !null: Freeze,
PhantomData<ArcInner<RwLock<Option<GovernanceControl>>>>: Freeze,
*const LeafNode<AgentId, SetValZST> is !null: Freeze,
PhantomData<Box<(AgentId, SetValZST)>>: Freeze,
*const ArcInner<Mutex<Option<WorkerHandle>>> is !null: Freeze,
PhantomData<ArcInner<Mutex<Option<WorkerHandle>>>>: Freeze,
*const ArcInner<dyn ScheduleStore> is !null: Freeze,
PhantomData<ArcInner<dyn ScheduleStore>>: Freeze,
*const ArcInner<dyn AuditRecorder> is !null: Freeze,
PhantomData<ArcInner<dyn AuditRecorder>>: Freeze,
*const ArcInner<HashMap<String, WebhookHook>> is !null: Freeze,
PhantomData<ArcInner<HashMap<String, WebhookHook>>>: Freeze,
*const ArcInner<dyn ApprovalService> is !null: Freeze,
PhantomData<ArcInner<dyn ApprovalService>>: Freeze,
*const ArcInner<dyn AgUiExtension> is !null: Freeze,
PhantomData<ArcInner<dyn AgUiExtension>>: Freeze,
impl Move for ServerBuilder
impl Send for ServerBuilderwhere
Arc<dyn AgentLoader>: Send,
Arc<dyn SessionService>: Send,
Arc<dyn ArtifactService>: Send,
Arc<dyn Memory>: Send,
Arc<dyn BaseEventsSummarizer>: Send,
Arc<dyn CacheCapable>: Send,
Arc<AdkSpanExporter>: Send,
RawVecInner: Send,
Arc<dyn RequestContextExtractor>: Send,
Arc<ControlState>: Send,
Arc<Mutex<HashMap<AdkIdentity, usize>>>: Send,
Arc<RouterInner<()>>: Send,
Arc<dyn FreezeDelegate>: Send,
Arc<SkillIndex>: Send,
Arc<dyn DurableRunStore>: Send,
Arc<dyn WorkflowExecutor>: Send,
NodeRef<Owned, String, Arc<Runner>, LeafOrInternal>: Send,
BoxRaw<(String, Arc<Runner>)>: Send,
Arc<RwLock<Option<GovernanceControl>>>: Send,
NodeRef<Owned, AgentId, SetValZST, LeafOrInternal>: Send,
BoxRaw<(AgentId, SetValZST)>: Send,
Arc<Mutex<Option<WorkerHandle>>>: Send,
Arc<dyn ScheduleStore>: Send,
Arc<dyn AuditRecorder>: Send,
Arc<HashMap<String, WebhookHook>>: Send,
Arc<dyn ApprovalService>: Send,
Arc<dyn AgUiExtension>: Send,
impl Sync for ServerBuilderwhere
Arc<dyn AgentLoader>: Sync,
Arc<dyn SessionService>: Sync,
Arc<dyn ArtifactService>: Sync,
Arc<dyn Memory>: Sync,
Arc<dyn BaseEventsSummarizer>: Sync,
Arc<dyn CacheCapable>: Sync,
Arc<AdkSpanExporter>: Sync,
RawVecInner: Sync,
Arc<dyn RequestContextExtractor>: Sync,
Arc<ControlState>: Sync,
Arc<Mutex<HashMap<AdkIdentity, usize>>>: Sync,
Arc<RouterInner<()>>: Sync,
Arc<dyn FreezeDelegate>: Sync,
Arc<SkillIndex>: Sync,
Arc<dyn DurableRunStore>: Sync,
Arc<dyn WorkflowExecutor>: Sync,
NodeRef<Owned, String, Arc<Runner>, LeafOrInternal>: Sync,
BoxRaw<(String, Arc<Runner>)>: Sync,
Arc<RwLock<Option<GovernanceControl>>>: Sync,
NodeRef<Owned, AgentId, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(AgentId, SetValZST)>: Sync,
Arc<Mutex<Option<WorkerHandle>>>: Sync,
Arc<dyn ScheduleStore>: Sync,
Arc<dyn AuditRecorder>: Sync,
Arc<HashMap<String, WebhookHook>>: Sync,
Arc<dyn ApprovalService>: Sync,
Arc<dyn AgUiExtension>: Sync,
impl Unpin for ServerBuilderwhere
Arc<dyn AgentLoader>: Unpin,
Arc<dyn SessionService>: Unpin,
Arc<dyn ArtifactService>: Unpin,
Arc<dyn Memory>: Unpin,
Arc<dyn BaseEventsSummarizer>: Unpin,
Arc<dyn CacheCapable>: Unpin,
Arc<AdkSpanExporter>: Unpin,
*const u8 is !null: Unpin,
Arc<dyn RequestContextExtractor>: Unpin,
Arc<ControlState>: Unpin,
Arc<Mutex<HashMap<AdkIdentity, usize>>>: Unpin,
Arc<RouterInner<()>>: Unpin,
Arc<dyn FreezeDelegate>: Unpin,
Arc<SkillIndex>: Unpin,
Arc<dyn DurableRunStore>: Unpin,
Arc<dyn WorkflowExecutor>: Unpin,
*const LeafNode<String, Arc<Runner>> is !null: Unpin,
Box<(String, Arc<Runner>)>: Unpin,
Arc<RwLock<Option<GovernanceControl>>>: Unpin,
*const LeafNode<AgentId, SetValZST> is !null: Unpin,
Box<(AgentId, SetValZST)>: Unpin,
Arc<Mutex<Option<WorkerHandle>>>: Unpin,
Arc<dyn ScheduleStore>: Unpin,
Arc<dyn AuditRecorder>: Unpin,
Arc<HashMap<String, WebhookHook>>: Unpin,
Arc<dyn ApprovalService>: Unpin,
Arc<dyn AgUiExtension>: Unpin,
impl UnsafeUnpin for ServerBuilderwhere
*const ArcInner<dyn AgentLoader> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn AgentLoader>>: UnsafeUnpin,
*const ArcInner<dyn SessionService> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn SessionService>>: UnsafeUnpin,
*const ArcInner<dyn ArtifactService> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ArtifactService>>: UnsafeUnpin,
*const ArcInner<dyn Memory> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Memory>>: UnsafeUnpin,
*const ArcInner<dyn BaseEventsSummarizer> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn BaseEventsSummarizer>>: UnsafeUnpin,
*const ArcInner<dyn CacheCapable> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn CacheCapable>>: UnsafeUnpin,
*const ArcInner<AdkSpanExporter> is !null: UnsafeUnpin,
PhantomData<ArcInner<AdkSpanExporter>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const ArcInner<dyn RequestContextExtractor> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn RequestContextExtractor>>: UnsafeUnpin,
*const ArcInner<ControlState> is !null: UnsafeUnpin,
PhantomData<ArcInner<ControlState>>: UnsafeUnpin,
*const ArcInner<Mutex<HashMap<AdkIdentity, usize>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<HashMap<AdkIdentity, usize>>>>: UnsafeUnpin,
PhantomData<Router>: UnsafeUnpin,
*const ArcInner<dyn FreezeDelegate> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn FreezeDelegate>>: UnsafeUnpin,
*const ArcInner<SkillIndex> is !null: UnsafeUnpin,
PhantomData<ArcInner<SkillIndex>>: UnsafeUnpin,
*const ArcInner<dyn DurableRunStore> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn DurableRunStore>>: UnsafeUnpin,
*const ArcInner<dyn WorkflowExecutor> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn WorkflowExecutor>>: UnsafeUnpin,
*const LeafNode<String, Arc<Runner>> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Arc<Runner>)>>: UnsafeUnpin,
*const ArcInner<RwLock<Option<GovernanceControl>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<RwLock<Option<GovernanceControl>>>>: UnsafeUnpin,
*const LeafNode<AgentId, SetValZST> is !null: UnsafeUnpin,
PhantomData<Box<(AgentId, SetValZST)>>: UnsafeUnpin,
*const ArcInner<Mutex<Option<WorkerHandle>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<Option<WorkerHandle>>>>: UnsafeUnpin,
*const ArcInner<dyn ScheduleStore> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ScheduleStore>>: UnsafeUnpin,
*const ArcInner<dyn AuditRecorder> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn AuditRecorder>>: UnsafeUnpin,
*const ArcInner<HashMap<String, WebhookHook>> is !null: UnsafeUnpin,
PhantomData<ArcInner<HashMap<String, WebhookHook>>>: UnsafeUnpin,
*const ArcInner<dyn ApprovalService> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ApprovalService>>: UnsafeUnpin,
*const ArcInner<dyn AgUiExtension> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn AgUiExtension>>: UnsafeUnpin,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§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.Source§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.Source§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.Source§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.Source§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.Source§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.Source§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.Source§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.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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 moreimpl<T> MaybeSend for Twhere
T: Send,
Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§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 moreSource§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 moreSource§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
Source§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
Source§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.Source§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.Source§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.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.Source§impl<T> Tap for T
impl<T> Tap for T
Source§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 moreSource§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 moreSource§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 moreSource§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 moreSource§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 moreSource§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 moreSource§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.Source§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.Source§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.Source§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.Source§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.Source§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.Source§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.