pub struct LlmAgent { /* private fields */ }Available on crate feature
agents only.Expand description
An LLM-powered agent that orchestrates tool calls and sub-agent delegation.
LlmAgent is the primary agent type in ADK. It sends requests to an LLM,
executes tool calls from the response, and iterates until the model produces
a final text response or the iteration limit is reached.
Use LlmAgentBuilder::new to construct instances.
Trait Implementations§
Source§impl Agent for LlmAgent
impl Agent for LlmAgent
Source§fn prewarm<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
LlmAgent: 'async_trait,
fn prewarm<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
LlmAgent: 'async_trait,
Opens the model’s connection, then prewarms the sub-agents. Toolsets resolve their tools against a turn’s context, so they are left to the turn.
Source§fn description(&self) -> &str
fn description(&self) -> &str
Returns a human-readable description of this agent’s purpose.
Source§fn profile(&self) -> AgentProfile
fn profile(&self) -> AgentProfile
What the agent tells callers about itself when they list its skills, such as an A2A
agent card: its kind, its fixed instructions and its tools. Read more
Source§fn sub_agents(&self) -> &[Arc<dyn Agent>]
fn sub_agents(&self) -> &[Arc<dyn Agent>]
Returns the child agents managed by this agent.
Source§fn allows_transfer_to_parent(&self) -> bool
fn allows_transfer_to_parent(&self) -> bool
Whether this agent may hand control back to the agent that lists it as a sub-agent. Read more
Source§fn allows_transfer_to_peers(&self) -> bool
fn allows_transfer_to_peers(&self) -> bool
Whether this agent may hand control to the other sub-agents of its parent. Read more
Source§fn close<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
LlmAgent: 'async_trait,
fn close<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
LlmAgent: 'async_trait,
Releases the resources this agent and its sub-agents hold, such as toolset
connections. Read more
Source§fn capabilities(&self) -> AgentCapabilities
fn capabilities(&self) -> AgentCapabilities
Declares the execution-plane capabilities this agent supports. Read more
Source§fn screen_user_input<'life0, 'life1, 'async_trait>(
&'life0 self,
content: &'life1 Content,
) -> Pin<Box<dyn Future<Output = Result<Option<Content>, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
LlmAgent: 'async_trait,
fn screen_user_input<'life0, 'life1, 'async_trait>(
&'life0 self,
content: &'life1 Content,
) -> Pin<Box<dyn Future<Output = Result<Option<Content>, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
LlmAgent: 'async_trait,
Screens a user message with the input guardrails of this agent and of every agent
below it. Read more
Source§fn run<'life0, 'async_trait>(
&'life0 self,
ctx: Arc<dyn InvocationContext>,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<Event, AdkError>> + Send>>, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
LlmAgent: 'async_trait,
fn run<'life0, 'async_trait>(
&'life0 self,
ctx: Arc<dyn InvocationContext>,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<Event, AdkError>> + Send>>, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
LlmAgent: 'async_trait,
Executes the agent and returns a stream of events.
Source§fn interaction_mode(&self) -> AgentInteractionMode
fn interaction_mode(&self) -> AgentInteractionMode
Returns the agent’s primary interaction pattern. Read more
Source§fn supports_agent_transfer(&self) -> bool
fn supports_agent_transfer(&self) -> bool
Whether this agent participates in LLM-driven agent transfer and may be
resumed directly across conversation turns. Read more
Source§fn cancel_remote_task<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_task_id: &'life1 str,
_acting: &'life2 ActingContext,
) -> Pin<Box<dyn Future<Output = Result<(), AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn cancel_remote_task<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_task_id: &'life1 str,
_acting: &'life2 ActingContext,
) -> Pin<Box<dyn Future<Output = Result<(), AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Cancels
task_id, a task this agent started on another agent, for acting: the
task that waited on it was cancelled, so the input it waits for will never come. Read moreSource§fn topology(&self) -> Option<AgentTopology>
fn topology(&self) -> Option<AgentTopology>
Returns portable composition metadata when this agent owns an explicit topology. Read more
Source§fn configure_run(&self, _agent_name: &str, _config: &mut RunConfig)
fn configure_run(&self, _agent_name: &str, _config: &mut RunConfig)
Applies agent-composition policy to a run before the runtime creates the
invocation context for
agent_name. Read moreSource§fn transfer_targets_for(&self, _agent_name: &str) -> Option<Vec<String>>
fn transfer_targets_for(&self, _agent_name: &str) -> Option<Vec<String>>
Returns the exact handoff targets allowed for
agent_name, when this
agent owns an explicit transfer topology. Read moreSource§fn strict_transfer_policy(&self) -> bool
fn strict_transfer_policy(&self) -> bool
Whether transfer-policy violations should fail the run. Read more
Source§fn govern_transfer<'life0, 'life1, 'async_trait>(
&'life0 self,
_request: &'life1 AgentTransferRequest,
) -> Pin<Box<dyn Future<Output = Result<AgentTransferDecision, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn govern_transfer<'life0, 'life1, 'async_trait>(
&'life0 self,
_request: &'life1 AgentTransferRequest,
) -> Pin<Box<dyn Future<Output = Result<AgentTransferDecision, AdkError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Applies asynchronous policy to an otherwise valid transfer. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for LlmAgent
impl !UnwindSafe for LlmAgent
impl Forget for LlmAgent
impl Freeze for LlmAgentwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<dyn Llm> is !null: Freeze,
PhantomData<ArcInner<dyn Llm>>: Freeze,
*const ArcInner<Box<dyn Fn(Arc<dyn ReadonlyContext>) -> Pin<Box<dyn Future<Output = Result<String, AdkError>> + Send>> + Sync + Send>> is !null: Freeze,
PhantomData<ArcInner<Box<dyn Fn(Arc<dyn ReadonlyContext>) -> Pin<Box<dyn Future<Output = Result<String, AdkError>> + Send>> + Sync + Send>>>: Freeze,
*const ArcInner<SkillIndex> is !null: Freeze,
PhantomData<ArcInner<SkillIndex>>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Value>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, Value>>: Freeze,
PhantomData<Arc<dyn Tool>>: Freeze,
PhantomData<Arc<dyn Toolset>>: Freeze,
PhantomData<Arc<dyn Agent>>: Freeze,
*const ArcInner<Vec<Box<dyn Fn(Arc<dyn CallbackContext>) -> Pin<Box<dyn Future<Output = Result<Option<Content>, AdkError>> + Send>> + Sync + Send>>> is !null: Freeze,
PhantomData<ArcInner<Vec<Box<dyn Fn(Arc<dyn CallbackContext>) -> Pin<Box<dyn Future<Output = Result<Option<Content>, AdkError>> + Send>> + Sync + Send>>>>: Freeze,
*const ArcInner<Vec<Box<dyn Fn(Arc<dyn CallbackContext>, Vec<Content>) -> Pin<Box<dyn Future<Output = Result<Vec<Content>, AdkError>> + Send>> + Sync + Send>>> is !null: Freeze,
PhantomData<ArcInner<Vec<Box<dyn Fn(Arc<dyn CallbackContext>, Vec<Content>) -> Pin<Box<dyn Future<Output = Result<Vec<Content>, AdkError>> + Send>> + Sync + Send>>>>: Freeze,
*const ArcInner<Vec<Box<dyn Fn(Arc<dyn CallbackContext>, LlmRequest) -> Pin<Box<dyn Future<Output = Result<BeforeModelResult, AdkError>> + Send>> + Sync + Send>>> is !null: Freeze,
PhantomData<ArcInner<Vec<Box<dyn Fn(Arc<dyn CallbackContext>, LlmRequest) -> Pin<Box<dyn Future<Output = Result<BeforeModelResult, AdkError>> + Send>> + Sync + Send>>>>: Freeze,
*const ArcInner<Vec<Box<dyn Fn(Arc<dyn CallbackContext>, LlmResponse) -> Pin<Box<dyn Future<Output = Result<Option<LlmResponse>, AdkError>> + Send>> + Sync + Send>>> is !null: Freeze,
PhantomData<ArcInner<Vec<Box<dyn Fn(Arc<dyn CallbackContext>, LlmResponse) -> Pin<Box<dyn Future<Output = Result<Option<LlmResponse>, AdkError>> + Send>> + Sync + Send>>>>: Freeze,
*const ArcInner<Vec<Box<dyn Fn(Arc<dyn CallbackContext>, Arc<dyn Tool>, Value, String) -> Pin<Box<dyn Future<Output = Result<Option<Value>, AdkError>> + Send>> + Sync + Send>>> is !null: Freeze,
PhantomData<ArcInner<Vec<Box<dyn Fn(Arc<dyn CallbackContext>, Arc<dyn Tool>, Value, String) -> Pin<Box<dyn Future<Output = Result<Option<Value>, AdkError>> + Send>> + Sync + Send>>>>: Freeze,
*const ArcInner<Vec<Box<dyn Fn(Arc<dyn CallbackContext>, Arc<dyn Tool>, Value, Value) -> Pin<Box<dyn Future<Output = Result<Option<Value>, AdkError>> + Send>> + Sync + Send>>> is !null: Freeze,
PhantomData<ArcInner<Vec<Box<dyn Fn(Arc<dyn CallbackContext>, Arc<dyn Tool>, Value, Value) -> Pin<Box<dyn Future<Output = Result<Option<Value>, AdkError>> + Send>> + Sync + Send>>>>: Freeze,
PhantomData<(String, RetryBudget)>: Freeze,
*const LeafNode<String, SetValZST> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, SetValZST)>>: Freeze,
*const ArcInner<GuardrailSet> is !null: Freeze,
PhantomData<ArcInner<GuardrailSet>>: Freeze,
*const ArcInner<ToolGuardrailSet> is !null: Freeze,
PhantomData<ArcInner<ToolGuardrailSet>>: Freeze,
*const ArcInner<EnhancedPluginManager> is !null: Freeze,
PhantomData<ArcInner<EnhancedPluginManager>>: Freeze,
impl Move for LlmAgent
impl Send for LlmAgentwhere
RawVecInner: Send,
Arc<dyn Llm>: Send,
Arc<Box<dyn Fn(Arc<dyn ReadonlyContext>) -> Pin<Box<dyn Future<Output = Result<String, AdkError>> + Send>> + Sync + Send>>: Send,
Arc<SkillIndex>: Send,
RawTable<usize>: Send,
Arc<dyn Tool>: Send,
Arc<dyn Toolset>: Send,
Arc<dyn Agent>: Send,
Arc<Vec<Box<dyn Fn(Arc<dyn CallbackContext>) -> Pin<Box<dyn Future<Output = Result<Option<Content>, AdkError>> + Send>> + Sync + Send>>>: Send,
Arc<Vec<Box<dyn Fn(Arc<dyn CallbackContext>, Vec<Content>) -> Pin<Box<dyn Future<Output = Result<Vec<Content>, AdkError>> + Send>> + Sync + Send>>>: Send,
Arc<Vec<Box<dyn Fn(Arc<dyn CallbackContext>, LlmRequest) -> Pin<Box<dyn Future<Output = Result<BeforeModelResult, AdkError>> + Send>> + Sync + Send>>>: Send,
Arc<Vec<Box<dyn Fn(Arc<dyn CallbackContext>, LlmResponse) -> Pin<Box<dyn Future<Output = Result<Option<LlmResponse>, AdkError>> + Send>> + Sync + Send>>>: Send,
Arc<Vec<Box<dyn Fn(Arc<dyn CallbackContext>, Arc<dyn Tool>, Value, String) -> Pin<Box<dyn Future<Output = Result<Option<Value>, AdkError>> + Send>> + Sync + Send>>>: Send,
Arc<Vec<Box<dyn Fn(Arc<dyn CallbackContext>, Arc<dyn Tool>, Value, Value) -> Pin<Box<dyn Future<Output = Result<Option<Value>, AdkError>> + Send>> + Sync + Send>>>: Send,
RawTable<(String, RetryBudget)>: Send,
NodeRef<Owned, String, SetValZST, LeafOrInternal>: Send,
BoxRaw<(String, SetValZST)>: Send,
Arc<GuardrailSet>: Send,
Arc<ToolGuardrailSet>: Send,
Arc<EnhancedPluginManager>: Send,
impl Sync for LlmAgentwhere
RawVecInner: Sync,
Arc<dyn Llm>: Sync,
Arc<Box<dyn Fn(Arc<dyn ReadonlyContext>) -> Pin<Box<dyn Future<Output = Result<String, AdkError>> + Send>> + Sync + Send>>: Sync,
Arc<SkillIndex>: Sync,
RawTable<usize>: Sync,
Arc<dyn Tool>: Sync,
Arc<dyn Toolset>: Sync,
Arc<dyn Agent>: Sync,
Arc<Vec<Box<dyn Fn(Arc<dyn CallbackContext>) -> Pin<Box<dyn Future<Output = Result<Option<Content>, AdkError>> + Send>> + Sync + Send>>>: Sync,
Arc<Vec<Box<dyn Fn(Arc<dyn CallbackContext>, Vec<Content>) -> Pin<Box<dyn Future<Output = Result<Vec<Content>, AdkError>> + Send>> + Sync + Send>>>: Sync,
Arc<Vec<Box<dyn Fn(Arc<dyn CallbackContext>, LlmRequest) -> Pin<Box<dyn Future<Output = Result<BeforeModelResult, AdkError>> + Send>> + Sync + Send>>>: Sync,
Arc<Vec<Box<dyn Fn(Arc<dyn CallbackContext>, LlmResponse) -> Pin<Box<dyn Future<Output = Result<Option<LlmResponse>, AdkError>> + Send>> + Sync + Send>>>: Sync,
Arc<Vec<Box<dyn Fn(Arc<dyn CallbackContext>, Arc<dyn Tool>, Value, String) -> Pin<Box<dyn Future<Output = Result<Option<Value>, AdkError>> + Send>> + Sync + Send>>>: Sync,
Arc<Vec<Box<dyn Fn(Arc<dyn CallbackContext>, Arc<dyn Tool>, Value, Value) -> Pin<Box<dyn Future<Output = Result<Option<Value>, AdkError>> + Send>> + Sync + Send>>>: Sync,
RawTable<(String, RetryBudget)>: Sync,
NodeRef<Owned, String, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(String, SetValZST)>: Sync,
Arc<GuardrailSet>: Sync,
Arc<ToolGuardrailSet>: Sync,
Arc<EnhancedPluginManager>: Sync,
impl Unpin for LlmAgentwhere
*const u8 is !null: Unpin,
Arc<dyn Llm>: Unpin,
Arc<Box<dyn Fn(Arc<dyn ReadonlyContext>) -> Pin<Box<dyn Future<Output = Result<String, AdkError>> + Send>> + Sync + Send>>: Unpin,
Arc<SkillIndex>: Unpin,
Arc<dyn Tool>: Unpin,
Arc<dyn Toolset>: Unpin,
Arc<dyn Agent>: Unpin,
Arc<Vec<Box<dyn Fn(Arc<dyn CallbackContext>) -> Pin<Box<dyn Future<Output = Result<Option<Content>, AdkError>> + Send>> + Sync + Send>>>: Unpin,
Arc<Vec<Box<dyn Fn(Arc<dyn CallbackContext>, Vec<Content>) -> Pin<Box<dyn Future<Output = Result<Vec<Content>, AdkError>> + Send>> + Sync + Send>>>: Unpin,
Arc<Vec<Box<dyn Fn(Arc<dyn CallbackContext>, LlmRequest) -> Pin<Box<dyn Future<Output = Result<BeforeModelResult, AdkError>> + Send>> + Sync + Send>>>: Unpin,
Arc<Vec<Box<dyn Fn(Arc<dyn CallbackContext>, LlmResponse) -> Pin<Box<dyn Future<Output = Result<Option<LlmResponse>, AdkError>> + Send>> + Sync + Send>>>: Unpin,
Arc<Vec<Box<dyn Fn(Arc<dyn CallbackContext>, Arc<dyn Tool>, Value, String) -> Pin<Box<dyn Future<Output = Result<Option<Value>, AdkError>> + Send>> + Sync + Send>>>: Unpin,
Arc<Vec<Box<dyn Fn(Arc<dyn CallbackContext>, Arc<dyn Tool>, Value, Value) -> Pin<Box<dyn Future<Output = Result<Option<Value>, AdkError>> + Send>> + Sync + Send>>>: Unpin,
*const LeafNode<String, SetValZST> is !null: Unpin,
Box<(String, SetValZST)>: Unpin,
Arc<GuardrailSet>: Unpin,
Arc<ToolGuardrailSet>: Unpin,
Arc<EnhancedPluginManager>: Unpin,
impl UnsafeUnpin for LlmAgentwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<dyn Llm> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Llm>>: UnsafeUnpin,
*const ArcInner<Box<dyn Fn(Arc<dyn ReadonlyContext>) -> Pin<Box<dyn Future<Output = Result<String, AdkError>> + Send>> + Sync + Send>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Box<dyn Fn(Arc<dyn ReadonlyContext>) -> Pin<Box<dyn Future<Output = Result<String, AdkError>> + Send>> + Sync + Send>>>: UnsafeUnpin,
*const ArcInner<SkillIndex> is !null: UnsafeUnpin,
PhantomData<ArcInner<SkillIndex>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, Value>>: UnsafeUnpin,
PhantomData<Arc<dyn Tool>>: UnsafeUnpin,
PhantomData<Arc<dyn Toolset>>: UnsafeUnpin,
PhantomData<Arc<dyn Agent>>: UnsafeUnpin,
*const ArcInner<Vec<Box<dyn Fn(Arc<dyn CallbackContext>) -> Pin<Box<dyn Future<Output = Result<Option<Content>, AdkError>> + Send>> + Sync + Send>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Vec<Box<dyn Fn(Arc<dyn CallbackContext>) -> Pin<Box<dyn Future<Output = Result<Option<Content>, AdkError>> + Send>> + Sync + Send>>>>: UnsafeUnpin,
*const ArcInner<Vec<Box<dyn Fn(Arc<dyn CallbackContext>, Vec<Content>) -> Pin<Box<dyn Future<Output = Result<Vec<Content>, AdkError>> + Send>> + Sync + Send>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Vec<Box<dyn Fn(Arc<dyn CallbackContext>, Vec<Content>) -> Pin<Box<dyn Future<Output = Result<Vec<Content>, AdkError>> + Send>> + Sync + Send>>>>: UnsafeUnpin,
*const ArcInner<Vec<Box<dyn Fn(Arc<dyn CallbackContext>, LlmRequest) -> Pin<Box<dyn Future<Output = Result<BeforeModelResult, AdkError>> + Send>> + Sync + Send>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Vec<Box<dyn Fn(Arc<dyn CallbackContext>, LlmRequest) -> Pin<Box<dyn Future<Output = Result<BeforeModelResult, AdkError>> + Send>> + Sync + Send>>>>: UnsafeUnpin,
*const ArcInner<Vec<Box<dyn Fn(Arc<dyn CallbackContext>, LlmResponse) -> Pin<Box<dyn Future<Output = Result<Option<LlmResponse>, AdkError>> + Send>> + Sync + Send>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Vec<Box<dyn Fn(Arc<dyn CallbackContext>, LlmResponse) -> Pin<Box<dyn Future<Output = Result<Option<LlmResponse>, AdkError>> + Send>> + Sync + Send>>>>: UnsafeUnpin,
*const ArcInner<Vec<Box<dyn Fn(Arc<dyn CallbackContext>, Arc<dyn Tool>, Value, String) -> Pin<Box<dyn Future<Output = Result<Option<Value>, AdkError>> + Send>> + Sync + Send>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Vec<Box<dyn Fn(Arc<dyn CallbackContext>, Arc<dyn Tool>, Value, String) -> Pin<Box<dyn Future<Output = Result<Option<Value>, AdkError>> + Send>> + Sync + Send>>>>: UnsafeUnpin,
*const ArcInner<Vec<Box<dyn Fn(Arc<dyn CallbackContext>, Arc<dyn Tool>, Value, Value) -> Pin<Box<dyn Future<Output = Result<Option<Value>, AdkError>> + Send>> + Sync + Send>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Vec<Box<dyn Fn(Arc<dyn CallbackContext>, Arc<dyn Tool>, Value, Value) -> Pin<Box<dyn Future<Output = Result<Option<Value>, AdkError>> + Send>> + Sync + Send>>>>: UnsafeUnpin,
PhantomData<(String, RetryBudget)>: UnsafeUnpin,
*const LeafNode<String, SetValZST> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, SetValZST)>>: UnsafeUnpin,
*const ArcInner<GuardrailSet> is !null: UnsafeUnpin,
PhantomData<ArcInner<GuardrailSet>>: UnsafeUnpin,
*const ArcInner<ToolGuardrailSet> is !null: UnsafeUnpin,
PhantomData<ArcInner<ToolGuardrailSet>>: UnsafeUnpin,
*const ArcInner<EnhancedPluginManager> is !null: UnsafeUnpin,
PhantomData<ArcInner<EnhancedPluginManager>>: 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
Mutably borrows from an owned value. Read more
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,
Causes
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,
Causes
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,
Causes
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,
Causes
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,
Causes
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,
Causes
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,
Causes
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,
Causes
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> ⓘ
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 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> ⓘ
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 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,
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) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows
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,
Mutably borrows
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
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
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
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
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
Borrows
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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
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
Immutable access to the
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
Mutable access to the
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
Immutable access to the
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
Mutable access to the
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
Immutable access to the
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
Mutable access to the
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
Calls
.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
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
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
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
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
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
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
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
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
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
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
Calls
.tap_deref() only in debug builds, and is erased in release
builds.