pub struct AnpAdapter { /* private fields */ }Implementations§
Source§impl AnpAdapter
impl AnpAdapter
Trait Implementations§
Source§impl Default for AnpAdapter
impl Default for AnpAdapter
Source§impl ProtocolAdapter for AnpAdapter
impl ProtocolAdapter for AnpAdapter
Source§fn discover<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<RemoteCapabilities, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn discover<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<RemoteCapabilities, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Discover remote capabilities (fetch Agent Card or equivalent).
Source§fn invoke<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 str,
task: TaskRequest,
) -> Pin<Box<dyn Future<Output = Result<TaskHandle, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn invoke<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 str,
task: TaskRequest,
) -> Pin<Box<dyn Future<Output = Result<TaskHandle, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Submit a task/request to the remote.
Source§fn stream<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 str,
task: TaskRequest,
) -> Pin<Box<dyn Future<Output = Result<TaskStream, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn stream<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 str,
task: TaskRequest,
) -> Pin<Box<dyn Future<Output = Result<TaskStream, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Stream task progress events (for streaming tasks).
Source§fn status<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
url: &'life1 str,
task_id: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<TaskStatus, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn status<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
url: &'life1 str,
task_id: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<TaskStatus, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Poll task status by task_id.
Source§fn cancel<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_url: &'life1 str,
_task_id: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn cancel<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_url: &'life1 str,
_task_id: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Cancel a running task.
Source§fn stream_structured<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 str,
task: TaskRequest,
) -> Pin<Box<dyn Future<Output = Result<StructuredStream, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn stream_structured<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 str,
task: TaskRequest,
) -> Pin<Box<dyn Future<Output = Result<StructuredStream, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Stream task with structured typed chunks (I2.6).
Default: wraps
stream() and maps TaskEvent to StreamChunk.
Each chunk is also emitted as a tracing span event (I2.8).Source§fn stream_with_backpressure<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 str,
task: TaskRequest,
buffer_size: usize,
) -> Pin<Box<dyn Future<Output = Result<StructuredStream, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn stream_with_backpressure<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 str,
task: TaskRequest,
buffer_size: usize,
) -> Pin<Box<dyn Future<Output = Result<StructuredStream, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Stream with backpressure: bounded channel buffers at most
buffer_size chunks
before applying flow control to the producer (I2.9).Auto Trait Implementations§
impl Freeze for AnpAdapter
impl !RefUnwindSafe for AnpAdapter
impl Send for AnpAdapter
impl Sync for AnpAdapter
impl Unpin for AnpAdapter
impl UnsafeUnpin for AnpAdapter
impl !UnwindSafe for AnpAdapter
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