pub struct A2aMethodTable;Expand description
The A2A implementation of MethodTable.
A unit struct: the table is a fixed vocabulary with no configuration, so a
value of it is a constant rather than something to build. Mirrors
McpMethodTable.
Implementations§
Trait Implementations§
Source§impl Clone for A2aMethodTable
impl Clone for A2aMethodTable
impl Copy for A2aMethodTable
Source§impl Debug for A2aMethodTable
impl Debug for A2aMethodTable
Source§impl Default for A2aMethodTable
impl Default for A2aMethodTable
Source§impl MethodTable for A2aMethodTable
impl MethodTable for A2aMethodTable
Source§type RequestParams<'a> = Option<&'a RawValue>
type RequestParams<'a> = Option<&'a RawValue>
The decoded params of a request, which are method- and revision-specific. Read more
Source§type NotificationParams<'a> = Option<&'a RawValue>
type NotificationParams<'a> = Option<&'a RawValue>
The decoded params of a notification.
Source§fn lookup(&self, name: &str) -> Option<A2aMethod>
fn lookup(&self, name: &str) -> Option<A2aMethod>
The method a name denotes, or
None if this protocol has no such
method — which the router answers with -32601.Source§fn decode_request_params<'a>(
&self,
method: A2aMethod,
params: Option<&'a RawValue>,
) -> Result<Self::RequestParams<'a>, RouteError<'a>>
fn decode_request_params<'a>( &self, method: A2aMethod, params: Option<&'a RawValue>, ) -> Result<Self::RequestParams<'a>, RouteError<'a>>
Decodes a request’s params. Read more
Source§fn decode_notification_params<'a>(
&self,
method: A2aMethod,
params: Option<&'a RawValue>,
) -> Result<Self::NotificationParams<'a>, RouteError<'a>>
fn decode_notification_params<'a>( &self, method: A2aMethod, params: Option<&'a RawValue>, ) -> Result<Self::NotificationParams<'a>, RouteError<'a>>
Decodes a notification’s params. Read more
Auto Trait Implementations§
impl Freeze for A2aMethodTable
impl RefUnwindSafe for A2aMethodTable
impl Send for A2aMethodTable
impl Sync for A2aMethodTable
impl Unpin for A2aMethodTable
impl UnsafeUnpin for A2aMethodTable
impl UnwindSafe for A2aMethodTable
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