pub trait CommandContextAgentSource: Send + Sync {
// Required method
fn agent<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
agent_id: &'life1 str,
authorization: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<CommandContextAgent>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
// Provided methods
fn caller<'life0, 'life1, 'async_trait>(
&'life0 self,
_authorization: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<CommandContextCaller>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn requires_caller_credential(&self) -> bool { ... }
}Required Methods§
fn agent<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
agent_id: &'life1 str,
authorization: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<CommandContextAgent>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Provided Methods§
Sourcefn caller<'life0, 'life1, 'async_trait>(
&'life0 self,
_authorization: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<CommandContextCaller>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn caller<'life0, 'life1, 'async_trait>(
&'life0 self,
_authorization: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<CommandContextCaller>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Revalidate an execution user credential without persisting derived bearer material.
fn requires_caller_credential(&self) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".