pub struct SupercodeHttpRuntimeBackend { /* private fields */ }Expand description
Adapter that joins one authenticated Supercode SDK runtime without taking ownership of the process or creating a second model loop.
Implementations§
Source§impl SupercodeHttpRuntimeBackend
impl SupercodeHttpRuntimeBackend
Sourcepub fn new(receipt: ResolvedLiveRuntime) -> Self
pub fn new(receipt: ResolvedLiveRuntime) -> Self
Build an adapter from a trusted local receipt resolved by the host.
Trait Implementations§
Source§impl RuntimeBackend for SupercodeHttpRuntimeBackend
impl RuntimeBackend for SupercodeHttpRuntimeBackend
Source§fn capabilities(&self) -> RuntimeCapabilities
fn capabilities(&self) -> RuntimeCapabilities
Honest mechanical capability report.
Source§fn start<'life0, 'async_trait>(
&'life0 self,
_request: RuntimeStartRequest,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn RuntimeConnection>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start<'life0, 'async_trait>(
&'life0 self,
_request: RuntimeStartRequest,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn RuntimeConnection>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a fresh harness-native session.
Source§fn attach<'life0, 'async_trait>(
&'life0 self,
request: RuntimeAttachRequest,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn RuntimeConnection>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn attach<'life0, 'async_trait>(
&'life0 self,
request: RuntimeAttachRequest,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn RuntimeConnection>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Resume a persisted harness-native session through a new protocol
connection. This does not imply joining the process that originally
wrote the session.
Source§fn attach_existing<'life0, 'async_trait>(
&'life0 self,
request: RuntimeAttachRequest,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn RuntimeConnection>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn attach_existing<'life0, 'async_trait>(
&'life0 self,
request: RuntimeAttachRequest,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn RuntimeConnection>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Join an already-running harness process or server. Most stock harnesses
cannot do this; adapters must opt in rather than silently treating a
persisted resume as a live attach.
Auto Trait Implementations§
impl Freeze for SupercodeHttpRuntimeBackend
impl RefUnwindSafe for SupercodeHttpRuntimeBackend
impl Send for SupercodeHttpRuntimeBackend
impl Sync for SupercodeHttpRuntimeBackend
impl Unpin for SupercodeHttpRuntimeBackend
impl UnsafeUnpin for SupercodeHttpRuntimeBackend
impl UnwindSafe for SupercodeHttpRuntimeBackend
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