pub struct A2AClientFactoryBuilder { /* private fields */ }Expand description
Builder for A2AClientFactory.
Implementations§
Source§impl A2AClientFactoryBuilder
impl A2AClientFactoryBuilder
Sourcepub fn register(self, factory: Arc<dyn TransportFactory>) -> Self
pub fn register(self, factory: Arc<dyn TransportFactory>) -> Self
Register a transport factory for a protocol binding.
Sourcepub fn preferred_bindings(self, bindings: Vec<String>) -> Self
pub fn preferred_bindings(self, bindings: Vec<String>) -> Self
Set preferred binding order. First is most preferred.
Sourcepub fn with_interceptor(self, interceptor: Arc<dyn CallInterceptor>) -> Self
pub fn with_interceptor(self, interceptor: Arc<dyn CallInterceptor>) -> Self
Add a call interceptor.
Sourcepub fn no_defaults(self) -> Self
pub fn no_defaults(self) -> Self
Disable default JSON-RPC and REST transport factories.
Sourcepub fn build(self) -> A2AClientFactory
pub fn build(self) -> A2AClientFactory
Build the factory.
Auto Trait Implementations§
impl Freeze for A2AClientFactoryBuilder
impl !RefUnwindSafe for A2AClientFactoryBuilder
impl Send for A2AClientFactoryBuilder
impl Sync for A2AClientFactoryBuilder
impl Unpin for A2AClientFactoryBuilder
impl UnsafeUnpin for A2AClientFactoryBuilder
impl !UnwindSafe for A2AClientFactoryBuilder
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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request