struct CaptureTransport {
body: Arc<Mutex<Option<Value>>>,
}Expand description
A transport that records the body of the one session.create call, so the dry run shows exactly
what Engine::session_create (policy, model, lock rules and all) would send.
Fields§
§body: Arc<Mutex<Option<Value>>>Trait Implementations§
Source§impl Transport for CaptureTransport
impl Transport for CaptureTransport
async fn call( &self, _op: &Operation, _params: &Params, body: Option<&Value>, _deadline: Duration, ) -> Result<Value, TransportError>
async fn lifecycle(&self, _verb: Lifecycle) -> Result<String, TransportError>
async fn wait_idle( &self, _id: &str, _d: Duration, ) -> Result<WaitOutcome, TransportError>
async fn fetch_openapi(&self) -> Result<Value, TransportError>
Source§async fn cli_version(&self) -> Result<String, TransportError>
async fn cli_version(&self) -> Result<String, TransportError>
Raw
opencode --version stdout, trimmed, e.g. opencode v2.0.32.Auto Trait Implementations§
impl Freeze for CaptureTransport
impl RefUnwindSafe for CaptureTransport
impl Send for CaptureTransport
impl Sync for CaptureTransport
impl Unpin for CaptureTransport
impl UnsafeUnpin for CaptureTransport
impl UnwindSafe for CaptureTransport
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