pub struct AdapterRuntime { /* private fields */ }Implementations§
Source§impl AdapterRuntime
impl AdapterRuntime
pub async fn start( launch: LaunchSpec, request_timeout: Duration, ) -> Result<Self, AdapterError>
pub async fn post(&self, payload: Value) -> Result<PostOutcome, AdapterError>
pub async fn sse_stream( self: Arc<Self>, last_event_id: Option<u64>, ) -> impl Stream<Item = Result<Event, Infallible>> + Send + 'static
Sourcepub async fn value_stream(
self: Arc<Self>,
last_event_id: Option<u64>,
) -> impl Stream<Item = Value> + Send + 'static
pub async fn value_stream( self: Arc<Self>, last_event_id: Option<u64>, ) -> impl Stream<Item = Value> + Send + 'static
Stream of raw JSON-RPC Value payloads (without SSE framing).
Useful for consumers that need to inspect the payload contents
rather than forward them as SSE events.
pub async fn shutdown(&self)
pub async fn stderr_tail_summary(&self) -> Option<String>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AdapterRuntime
impl !RefUnwindSafe for AdapterRuntime
impl Send for AdapterRuntime
impl Sync for AdapterRuntime
impl Unpin for AdapterRuntime
impl UnsafeUnpin for AdapterRuntime
impl !UnwindSafe for AdapterRuntime
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