pub struct ExecutorConfig {
pub app_name: String,
pub runner_config: Arc<RunnerConfig>,
pub cancellation_token: Option<CancellationToken>,
pub interceptor_chain: Option<Arc<InterceptorChain>>,
}Fields§
§app_name: String§runner_config: Arc<RunnerConfig>§cancellation_token: Option<CancellationToken>§interceptor_chain: Option<Arc<InterceptorChain>>Optional interceptor chain for A2A request/response middleware.
When set, the chain’s run_before is called before processing a request,
and run_after is called after the executor produces a response.
Auto Trait Implementations§
impl !RefUnwindSafe for ExecutorConfig
impl !UnwindSafe for ExecutorConfig
impl Forget for ExecutorConfig
impl Freeze for ExecutorConfigwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<RunnerConfig> is !null: Freeze,
PhantomData<ArcInner<RunnerConfig>>: Freeze,
*const ArcInner<TreeNode> is !null: Freeze,
PhantomData<ArcInner<TreeNode>>: Freeze,
*const ArcInner<InterceptorChain> is !null: Freeze,
PhantomData<ArcInner<InterceptorChain>>: Freeze,
impl Move for ExecutorConfig
impl Send for ExecutorConfig
impl Sync for ExecutorConfig
impl Unpin for ExecutorConfig
impl UnsafeUnpin for ExecutorConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<RunnerConfig> is !null: UnsafeUnpin,
PhantomData<ArcInner<RunnerConfig>>: UnsafeUnpin,
*const ArcInner<TreeNode> is !null: UnsafeUnpin,
PhantomData<ArcInner<TreeNode>>: UnsafeUnpin,
*const ArcInner<InterceptorChain> is !null: UnsafeUnpin,
PhantomData<ArcInner<InterceptorChain>>: UnsafeUnpin,
Blanket Implementations§
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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 more