pub struct A2aServerApp { /* private fields */ }Available on crate feature
server only.Expand description
A configured A2A server application ready to serve.
Created via A2aServerBuilder::build. Provides access to the
underlying Axum router and a convenience serve
method for binding and listening.
Implementations§
Source§impl A2aServerApp
impl A2aServerApp
Sourcepub fn into_router(self) -> Router
Available on crate feature a2a-v1 only.
pub fn into_router(self) -> Router
a2a-v1 only.Consume the app and return the underlying Axum router.
Use this when you need to compose the A2A routes with other Axum routers or middleware.
Sourcepub fn bind_addr(&self) -> &str
Available on crate feature a2a-v1 only.
pub fn bind_addr(&self) -> &str
a2a-v1 only.Get the configured bind address.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for A2aServerApp
impl !RefUnwindSafe for A2aServerApp
impl Send for A2aServerApp
impl Sync for A2aServerApp
impl Unpin for A2aServerApp
impl UnsafeUnpin for A2aServerApp
impl !UnwindSafe for A2aServerApp
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