pub struct PiRuntimeBackend { /* private fields */ }Expand description
Pi live-runtime backend using pi --mode rpc JSONL.
Implementations§
Source§impl PiRuntimeBackend
impl PiRuntimeBackend
Sourcepub fn new() -> PiRuntimeBackend
pub fn new() -> PiRuntimeBackend
Use pi --mode rpc from PATH.
Sourcepub fn with_launch(launch: RuntimeLaunch) -> PiRuntimeBackend
pub fn with_launch(launch: RuntimeLaunch) -> PiRuntimeBackend
Use an explicit Pi RPC command prefix.
Trait Implementations§
Source§impl Clone for PiRuntimeBackend
impl Clone for PiRuntimeBackend
Source§fn clone(&self) -> PiRuntimeBackend
fn clone(&self) -> PiRuntimeBackend
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PiRuntimeBackend
impl Debug for PiRuntimeBackend
Source§impl Default for PiRuntimeBackend
impl Default for PiRuntimeBackend
Source§fn default() -> PiRuntimeBackend
fn default() -> PiRuntimeBackend
Returns the “default value” for a type. Read more
Source§impl RuntimeBackend for PiRuntimeBackend
impl RuntimeBackend for PiRuntimeBackend
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>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
PiRuntimeBackend: 'async_trait,
fn start<'life0, 'async_trait>(
&'life0 self,
request: RuntimeStartRequest,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn RuntimeConnection>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
PiRuntimeBackend: '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>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
PiRuntimeBackend: 'async_trait,
fn attach<'life0, 'async_trait>(
&'life0 self,
request: RuntimeAttachRequest,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn RuntimeConnection>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
PiRuntimeBackend: '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>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn attach_existing<'life0, 'async_trait>(
&'life0 self,
_request: RuntimeAttachRequest,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn RuntimeConnection>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: '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 PiRuntimeBackend
impl RefUnwindSafe for PiRuntimeBackend
impl Send for PiRuntimeBackend
impl Sync for PiRuntimeBackend
impl Unpin for PiRuntimeBackend
impl UnsafeUnpin for PiRuntimeBackend
impl UnwindSafe for PiRuntimeBackend
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