pub struct InvocationContext { /* private fields */ }runner only.Expand description
Runtime context for a single agent invocation.
Holds the agent, session, identity, and optional services (artifacts, memory,
secrets) needed during execution. Created by the Runner for
each run() call.
Implementations§
Source§impl InvocationContext
impl InvocationContext
Sourcepub fn new_typed(
invocation_id: String,
agent: Arc<dyn Agent>,
user_id: UserId,
app_name: AppName,
session_id: SessionId,
user_content: Content,
session: Arc<dyn Session>,
) -> Result<InvocationContext, AdkError>
pub fn new_typed( invocation_id: String, agent: Arc<dyn Agent>, user_id: UserId, app_name: AppName, session_id: SessionId, user_content: Content, session: Arc<dyn Session>, ) -> Result<InvocationContext, AdkError>
Create a new invocation context from validated typed identifiers.
Sourcepub fn new(
invocation_id: String,
agent: Arc<dyn Agent>,
user_id: String,
app_name: String,
session_id: String,
user_content: Content,
session: Arc<dyn Session>,
) -> Result<InvocationContext, AdkError>
pub fn new( invocation_id: String, agent: Arc<dyn Agent>, user_id: String, app_name: String, session_id: String, user_content: Content, session: Arc<dyn Session>, ) -> Result<InvocationContext, AdkError>
Create a new invocation context from raw string identifiers.
Validates and converts the string identifiers into typed wrappers.
Prefer new_typed when you already have validated types.
Sourcepub fn with_mutable_session_typed(
invocation_id: String,
agent: Arc<dyn Agent>,
user_id: UserId,
app_name: AppName,
session_id: SessionId,
user_content: Content,
session: Arc<MutableSession>,
) -> Result<InvocationContext, AdkError>
pub fn with_mutable_session_typed( invocation_id: String, agent: Arc<dyn Agent>, user_id: UserId, app_name: AppName, session_id: SessionId, user_content: Content, session: Arc<MutableSession>, ) -> Result<InvocationContext, AdkError>
Create an invocation context that reuses an existing mutable session and validated typed identifiers.
Sourcepub fn with_mutable_session(
invocation_id: String,
agent: Arc<dyn Agent>,
user_id: String,
app_name: String,
session_id: String,
user_content: Content,
session: Arc<MutableSession>,
) -> Result<InvocationContext, AdkError>
pub fn with_mutable_session( invocation_id: String, agent: Arc<dyn Agent>, user_id: String, app_name: String, session_id: String, user_content: Content, session: Arc<MutableSession>, ) -> Result<InvocationContext, AdkError>
Create an InvocationContext with an existing MutableSession. This allows sharing the same mutable session across multiple contexts (e.g., for agent transfers).
Sourcepub fn with_branch(self, branch: String) -> InvocationContext
pub fn with_branch(self, branch: String) -> InvocationContext
Set the event branch identifier for this context.
Sourcepub fn with_artifacts(self, artifacts: Arc<dyn Artifacts>) -> InvocationContext
pub fn with_artifacts(self, artifacts: Arc<dyn Artifacts>) -> InvocationContext
Attach an artifact storage service to this context.
Sourcepub fn with_memory(self, memory: Arc<dyn Memory>) -> InvocationContext
pub fn with_memory(self, memory: Arc<dyn Memory>) -> InvocationContext
Attach a memory service for RAG/semantic search.
Sourcepub fn with_run_config(self, config: RunConfig) -> InvocationContext
pub fn with_run_config(self, config: RunConfig) -> InvocationContext
Set the run configuration (streaming mode, history limits, etc.).
Sourcepub fn with_request_context(self, ctx: RequestContext) -> InvocationContext
pub fn with_request_context(self, ctx: RequestContext) -> InvocationContext
Set the request context from the server’s auth middleware bridge.
When set, user_id() returns request_context.user_id (overriding
the session-scoped identity), and user_scopes() returns
request_context.scopes. This is the explicit authenticated user
override — RequestContext remains separate from ExecutionIdentity
and AdkIdentity (it does not carry session or invocation IDs).
Set the shared state for parallel agent coordination.
Sourcepub fn with_secret_service(
self,
service: Arc<dyn SecretService>,
) -> InvocationContext
pub fn with_secret_service( self, service: Arc<dyn SecretService>, ) -> InvocationContext
Set the secret service for runtime secret retrieval.
When configured, tools can call ctx.get_secret("name") to retrieve
secrets from the configured provider (e.g., AWS Secrets Manager,
Azure Key Vault, GCP Secret Manager).
Sourcepub fn with_cancellation_token(
self,
token: CancellationToken,
) -> InvocationContext
pub fn with_cancellation_token( self, token: CancellationToken, ) -> InvocationContext
Attach a cooperative cancellation token.
When set, is_cancelled
reflects this token, so agents and tools can detect external
cancellation during long-running work.
Sourcepub fn with_orchestration_root_invocation_id(
self,
invocation_id: String,
) -> InvocationContext
pub fn with_orchestration_root_invocation_id( self, invocation_id: String, ) -> InvocationContext
Preserve the stable orchestration root across a Runner handoff.
Sourcepub fn with_steering_inbox(self, inbox: SteeringInbox) -> InvocationContext
pub fn with_steering_inbox(self, inbox: SteeringInbox) -> InvocationContext
Attach the run’s steering inbox, which
steering_inbox returns.
The Runner installs one per run, so every agent the run hands
control to takes the messages Runner::steer queues.
Sourcepub fn mutable_session(&self) -> &Arc<MutableSession> ⓘ
pub fn mutable_session(&self) -> &Arc<MutableSession> ⓘ
Get a reference to the mutable session. This allows the Runner to apply state deltas when events are processed.
Trait Implementations§
Source§impl CallbackContext for InvocationContext
impl CallbackContext for InvocationContext
Source§fn artifacts(&self) -> Option<Arc<dyn Artifacts>>
fn artifacts(&self) -> Option<Arc<dyn Artifacts>>
None when not running inside a ParallelAgent with shared state enabled.Source§fn tool_outcome(&self) -> Option<ToolOutcome>
fn tool_outcome(&self) -> Option<ToolOutcome>
None when not in a tool execution context.Source§fn tool_name(&self) -> Option<&str>
fn tool_name(&self) -> Option<&str>
Source§fn tool_input(&self) -> Option<&Value>
fn tool_input(&self) -> Option<&Value>
Source§impl InvocationContext for InvocationContext
impl InvocationContext for InvocationContext
Source§fn run_config(&self) -> &RunConfig
fn run_config(&self) -> &RunConfig
Source§fn end_invocation(&self)
fn end_invocation(&self)
Source§fn is_cancelled(&self) -> bool
fn is_cancelled(&self) -> bool
true if this invocation has been cancelled. Read moreSource§fn user_scopes(&self) -> Vec<String>
fn user_scopes(&self) -> Vec<String>
Source§fn request_metadata(&self) -> HashMap<String, Value>
fn request_metadata(&self) -> HashMap<String, Value>
RunConfig::request_metadata overlaid with the metadata of its
RequestContext, whose values win on a shared key. Read moreSource§fn orchestration_root_invocation_id(&self) -> &str
fn orchestration_root_invocation_id(&self) -> &str
Source§fn steering_inbox(&self) -> Option<SteeringInbox>
fn steering_inbox(&self) -> Option<SteeringInbox>
Runner::steer. Read moreSource§fn get_secret<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<String>, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
InvocationContext: 'async_trait,
fn get_secret<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<String>, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
InvocationContext: 'async_trait,
Source§fn get_secret_for<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 SecretRequest,
) -> Pin<Box<dyn Future<Output = Result<Option<String>, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
InvocationContext: 'async_trait,
fn get_secret_for<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 SecretRequest,
) -> Pin<Box<dyn Future<Output = Result<Option<String>, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
InvocationContext: 'async_trait,
Source§fn delegation_depth(&self) -> u32
fn delegation_depth(&self) -> u32
Source§fn max_delegation_depth(&self) -> Option<u32>
fn max_delegation_depth(&self) -> Option<u32>
Source§fn orchestration_edge_id(&self) -> Option<&str>
fn orchestration_edge_id(&self) -> Option<&str>
Source§impl ReadonlyContext for InvocationContext
impl ReadonlyContext for InvocationContext
Source§fn is_authenticated(&self) -> bool
fn is_authenticated(&self) -> bool
true when the run carries a RequestContext (spec 3.1 §10 F5) and its subject
is not a Visitor, whom no credential identifies.
Source§fn invocation_id(&self) -> &str
fn invocation_id(&self) -> &str
Source§fn agent_name(&self) -> &str
fn agent_name(&self) -> &str
Source§fn session_id(&self) -> &str
fn session_id(&self) -> &str
Source§fn user_content(&self) -> &Content
fn user_content(&self) -> &Content
Source§fn acting_context(&self) -> ActingContext
fn acting_context(&self) -> ActingContext
Source§fn state(&self) -> Option<&dyn State>
fn state(&self) -> Option<&dyn State>
Source§fn try_invocation_id(&self) -> Result<InvocationId, AdkError>
fn try_invocation_id(&self) -> Result<InvocationId, AdkError>
InvocationId. Read moreSource§fn try_identity(&self) -> Result<AdkIdentity, AdkError>
fn try_identity(&self) -> Result<AdkIdentity, AdkError>
AdkIdentity triple. Read moreSource§fn try_execution_identity(&self) -> Result<ExecutionIdentity, AdkError>
fn try_execution_identity(&self) -> Result<ExecutionIdentity, AdkError>
ExecutionIdentity. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for InvocationContext
impl !UnwindSafe for InvocationContext
impl Forget for InvocationContext
impl Freeze for InvocationContextwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<dyn Agent> is !null: Freeze,
PhantomData<ArcInner<dyn Agent>>: Freeze,
PhantomData<Part>: Freeze,
*const ArcInner<dyn Artifacts> is !null: Freeze,
PhantomData<ArcInner<dyn Artifacts>>: Freeze,
*const ArcInner<dyn Memory> is !null: Freeze,
PhantomData<ArcInner<dyn Memory>>: Freeze,
PhantomData<(String, ToolConfirmationDecision)>: Freeze,
PhantomData<(String, String)>: Freeze,
*const ArcInner<dyn ToolConfirmationHandler> is !null: Freeze,
PhantomData<ArcInner<dyn ToolConfirmationHandler>>: Freeze,
*const ArcInner<dyn ToolReviewer> is !null: Freeze,
PhantomData<ArcInner<dyn ToolReviewer>>: Freeze,
*const ArcInner<dyn RequestedCallSeal> is !null: Freeze,
PhantomData<ArcInner<dyn RequestedCallSeal>>: Freeze,
PhantomData<RuntimeToolset>: Freeze,
PhantomData<String>: Freeze,
PhantomData<(String, usize)>: Freeze,
PhantomData<Arc<dyn InvocationHooks>>: Freeze,
*const LeafNode<UsageUnit, u64> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(UsageUnit, u64)>>: Freeze,
*const ArcInner<BudgetTracker> is !null: Freeze,
PhantomData<ArcInner<BudgetTracker>>: Freeze,
*const ArcInner<dyn ActionLedger> is !null: Freeze,
PhantomData<ArcInner<dyn ActionLedger>>: Freeze,
*const ArcInner<dyn ToolPolicy> is !null: Freeze,
PhantomData<ArcInner<dyn ToolPolicy>>: Freeze,
PhantomData<RuleSet>: Freeze,
PhantomData<GovernanceControl>: Freeze,
PhantomData<(String, ToolApproval)>: 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 ConsentStore> is !null: Freeze,
PhantomData<ArcInner<dyn ConsentStore>>: Freeze,
*const ArcInner<dyn SubjectRegistry> is !null: Freeze,
PhantomData<ArcInner<dyn SubjectRegistry>>: Freeze,
*const LeafNode<String, ConsentPurpose> is !null: Freeze,
PhantomData<Box<(String, ConsentPurpose)>>: Freeze,
*const ArcInner<dyn Clock> is !null: Freeze,
PhantomData<ArcInner<dyn Clock>>: 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, AgentPrincipal> is !null: Freeze,
PhantomData<Box<(String, AgentPrincipal)>>: Freeze,
PhantomData<SubjectRef>: Freeze,
PhantomData<Value>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, Value>>: Freeze,
*const ArcInner<dyn HistoryCompactor> is !null: Freeze,
PhantomData<ArcInner<dyn HistoryCompactor>>: Freeze,
*const ArcInner<Atomic<bool>> is !null: Freeze,
PhantomData<ArcInner<Atomic<bool>>>: Freeze,
*const ArcInner<MutableSession> is !null: Freeze,
PhantomData<ArcInner<MutableSession>>: Freeze,
*const ArcInner<SharedState> is !null: Freeze,
PhantomData<ArcInner<SharedState>>: Freeze,
*const ArcInner<dyn SecretService> is !null: Freeze,
PhantomData<ArcInner<dyn SecretService>>: Freeze,
*const ArcInner<TreeNode> is !null: Freeze,
PhantomData<ArcInner<TreeNode>>: Freeze,
*const ArcInner<Mutex<InboxState>> is !null: Freeze,
PhantomData<ArcInner<Mutex<InboxState>>>: Freeze,
impl Move for InvocationContext
impl Send for InvocationContextwhere
RawVecInner: Send,
Arc<dyn Agent>: Send,
RawTable<usize>: Send,
Arc<dyn Artifacts>: Send,
Arc<dyn Memory>: Send,
RawTable<(String, ToolConfirmationDecision)>: Send,
RawTable<(String, String)>: Send,
Arc<dyn ToolConfirmationHandler>: Send,
Arc<dyn ToolReviewer>: Send,
Arc<dyn RequestedCallSeal>: Send,
Arc<dyn Toolset>: Send,
RawTable<(String, usize)>: Send,
Arc<dyn InvocationHooks>: Send,
NodeRef<Owned, UsageUnit, u64, LeafOrInternal>: Send,
BoxRaw<(UsageUnit, u64)>: Send,
Arc<BudgetTracker>: Send,
Arc<dyn ActionLedger>: Send,
Arc<dyn ToolPolicy>: Send,
Arc<ControlState>: Send,
RawTable<(String, ToolApproval)>: Send,
Arc<dyn ApprovalStore>: Send,
Arc<dyn ApprovalService>: Send,
Arc<dyn ConsentStore>: Send,
Arc<dyn SubjectRegistry>: Send,
NodeRef<Owned, String, ConsentPurpose, LeafOrInternal>: Send,
BoxRaw<(String, ConsentPurpose)>: Send,
Arc<dyn Clock>: Send,
Arc<dyn SpendLedger>: Send,
Arc<dyn AuditRecorder>: Send,
NodeRef<Owned, String, AgentPrincipal, LeafOrInternal>: Send,
BoxRaw<(String, AgentPrincipal)>: Send,
Arc<dyn HistoryCompactor>: Send,
Arc<Atomic<bool>>: Send,
Arc<MutableSession>: Send,
Arc<SharedState>: Send,
Arc<dyn SecretService>: Send,
Arc<TreeNode>: Send,
Arc<Mutex<InboxState>>: Send,
impl Sync for InvocationContextwhere
RawVecInner: Sync,
Arc<dyn Agent>: Sync,
RawTable<usize>: Sync,
Arc<dyn Artifacts>: Sync,
Arc<dyn Memory>: Sync,
RawTable<(String, ToolConfirmationDecision)>: Sync,
RawTable<(String, String)>: Sync,
Arc<dyn ToolConfirmationHandler>: Sync,
Arc<dyn ToolReviewer>: Sync,
Arc<dyn RequestedCallSeal>: Sync,
Arc<dyn Toolset>: Sync,
RawTable<(String, usize)>: Sync,
Arc<dyn InvocationHooks>: Sync,
NodeRef<Owned, UsageUnit, u64, LeafOrInternal>: Sync,
BoxRaw<(UsageUnit, u64)>: Sync,
Arc<BudgetTracker>: Sync,
Arc<dyn ActionLedger>: Sync,
Arc<dyn ToolPolicy>: Sync,
Arc<ControlState>: Sync,
RawTable<(String, ToolApproval)>: Sync,
Arc<dyn ApprovalStore>: Sync,
Arc<dyn ApprovalService>: Sync,
Arc<dyn ConsentStore>: Sync,
Arc<dyn SubjectRegistry>: Sync,
NodeRef<Owned, String, ConsentPurpose, LeafOrInternal>: Sync,
BoxRaw<(String, ConsentPurpose)>: Sync,
Arc<dyn Clock>: Sync,
Arc<dyn SpendLedger>: Sync,
Arc<dyn AuditRecorder>: Sync,
NodeRef<Owned, String, AgentPrincipal, LeafOrInternal>: Sync,
BoxRaw<(String, AgentPrincipal)>: Sync,
Arc<dyn HistoryCompactor>: Sync,
Arc<Atomic<bool>>: Sync,
Arc<MutableSession>: Sync,
Arc<SharedState>: Sync,
Arc<dyn SecretService>: Sync,
Arc<TreeNode>: Sync,
Arc<Mutex<InboxState>>: Sync,
impl Unpin for InvocationContextwhere
*const u8 is !null: Unpin,
Arc<dyn Agent>: Unpin,
Arc<dyn Artifacts>: Unpin,
Arc<dyn Memory>: Unpin,
Arc<dyn ToolConfirmationHandler>: Unpin,
Arc<dyn ToolReviewer>: Unpin,
Arc<dyn RequestedCallSeal>: Unpin,
Arc<dyn Toolset>: Unpin,
Arc<dyn InvocationHooks>: Unpin,
*const LeafNode<UsageUnit, u64> is !null: Unpin,
Box<(UsageUnit, u64)>: Unpin,
Arc<BudgetTracker>: Unpin,
Arc<dyn ActionLedger>: Unpin,
Arc<dyn ToolPolicy>: Unpin,
Arc<ControlState>: Unpin,
NonZero<i32>: Unpin,
Utc: Unpin,
Arc<dyn ApprovalStore>: Unpin,
Arc<dyn ApprovalService>: Unpin,
Arc<dyn ConsentStore>: Unpin,
Arc<dyn SubjectRegistry>: Unpin,
*const LeafNode<String, ConsentPurpose> is !null: Unpin,
Box<(String, ConsentPurpose)>: Unpin,
Arc<dyn Clock>: Unpin,
Arc<dyn SpendLedger>: Unpin,
Arc<dyn AuditRecorder>: Unpin,
*const LeafNode<String, AgentPrincipal> is !null: Unpin,
Box<(String, AgentPrincipal)>: Unpin,
Arc<dyn HistoryCompactor>: Unpin,
Arc<Atomic<bool>>: Unpin,
Arc<MutableSession>: Unpin,
Arc<SharedState>: Unpin,
Arc<dyn SecretService>: Unpin,
Arc<TreeNode>: Unpin,
Arc<Mutex<InboxState>>: Unpin,
impl UnsafeUnpin for InvocationContextwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<dyn Agent> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Agent>>: UnsafeUnpin,
PhantomData<Part>: UnsafeUnpin,
*const ArcInner<dyn Artifacts> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Artifacts>>: UnsafeUnpin,
*const ArcInner<dyn Memory> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Memory>>: UnsafeUnpin,
PhantomData<(String, ToolConfirmationDecision)>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
*const ArcInner<dyn ToolConfirmationHandler> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ToolConfirmationHandler>>: UnsafeUnpin,
*const ArcInner<dyn ToolReviewer> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ToolReviewer>>: UnsafeUnpin,
*const ArcInner<dyn RequestedCallSeal> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn RequestedCallSeal>>: UnsafeUnpin,
PhantomData<RuntimeToolset>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<(String, usize)>: UnsafeUnpin,
PhantomData<Arc<dyn InvocationHooks>>: UnsafeUnpin,
*const LeafNode<UsageUnit, u64> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(UsageUnit, u64)>>: UnsafeUnpin,
*const ArcInner<BudgetTracker> is !null: UnsafeUnpin,
PhantomData<ArcInner<BudgetTracker>>: UnsafeUnpin,
*const ArcInner<dyn ActionLedger> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ActionLedger>>: UnsafeUnpin,
*const ArcInner<dyn ToolPolicy> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ToolPolicy>>: UnsafeUnpin,
PhantomData<RuleSet>: UnsafeUnpin,
PhantomData<GovernanceControl>: UnsafeUnpin,
PhantomData<(String, ToolApproval)>: 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 ConsentStore> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ConsentStore>>: UnsafeUnpin,
*const ArcInner<dyn SubjectRegistry> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn SubjectRegistry>>: UnsafeUnpin,
*const LeafNode<String, ConsentPurpose> is !null: UnsafeUnpin,
PhantomData<Box<(String, ConsentPurpose)>>: UnsafeUnpin,
*const ArcInner<dyn Clock> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Clock>>: 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, AgentPrincipal> is !null: UnsafeUnpin,
PhantomData<Box<(String, AgentPrincipal)>>: UnsafeUnpin,
PhantomData<SubjectRef>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, Value>>: UnsafeUnpin,
*const ArcInner<dyn HistoryCompactor> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn HistoryCompactor>>: UnsafeUnpin,
*const ArcInner<Atomic<bool>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Atomic<bool>>>: UnsafeUnpin,
*const ArcInner<MutableSession> is !null: UnsafeUnpin,
PhantomData<ArcInner<MutableSession>>: UnsafeUnpin,
*const ArcInner<SharedState> is !null: UnsafeUnpin,
PhantomData<ArcInner<SharedState>>: UnsafeUnpin,
*const ArcInner<dyn SecretService> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn SecretService>>: UnsafeUnpin,
*const ArcInner<TreeNode> is !null: UnsafeUnpin,
PhantomData<ArcInner<TreeNode>>: UnsafeUnpin,
*const ArcInner<Mutex<InboxState>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<InboxState>>>: 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.