pub struct A2aServer { /* private fields */ }Implementations§
Source§impl A2aServer
impl A2aServer
pub fn new(handler: impl MessageHandler + 'static) -> Self
pub fn echo() -> Self
pub fn bind(self, address: &str) -> Result<Self, AddrParseError>
pub fn bind_unchecked(self, address: &str) -> Self
pub fn task_store(self, store: TaskStore) -> Self
pub fn auth_extractor<F>(self, extractor: F) -> Self
pub fn additional_routes(self, routes: Router<AppState>) -> Self
pub fn get_task_store(&self) -> TaskStore
pub fn build_router(self) -> Router
pub fn get_event_sender(&self) -> Sender<StreamResponse>
pub async fn run(self) -> Result<()>
Auto Trait Implementations§
impl Freeze for A2aServer
impl !RefUnwindSafe for A2aServer
impl Send for A2aServer
impl Sync for A2aServer
impl Unpin for A2aServer
impl UnsafeUnpin for A2aServer
impl !UnwindSafe for A2aServer
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