pub struct NotFoundTransport;Expand description
Every call fails OPENCODE_NOT_FOUND (kept for the server tests that need a transport with no CLI).
Trait Implementations§
Source§impl Transport for NotFoundTransport
impl Transport for NotFoundTransport
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, _session_id: &str, _deadline: 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 NotFoundTransport
impl RefUnwindSafe for NotFoundTransport
impl Send for NotFoundTransport
impl Sync for NotFoundTransport
impl Unpin for NotFoundTransport
impl UnsafeUnpin for NotFoundTransport
impl UnwindSafe for NotFoundTransport
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