pub struct OpenCodeAdapter { /* private fields */ }Expand description
Version-pinned projection around one existing SDK-owned runtime.
Implementations§
Source§impl OpenCodeAdapter
impl OpenCodeAdapter
pub fn new( runtime: Arc<dyn SdkRuntime>, runtime_id: impl Into<String>, workspace: impl Into<PathBuf>, ) -> Arc<Self> ⓘ
pub fn session_id(&self) -> &str
pub fn traced_routes() -> &'static [&'static str]
pub fn event_projection( &self, attachment: &FrontendAttachment, ) -> OpenCodeEventProjection
pub fn initial_events(&self, attachment: &FrontendAttachment) -> Vec<Value>
Sourcepub async fn handle(&self, request: OpenCodeRequest) -> OpenCodeResponse
pub async fn handle(&self, request: OpenCodeRequest) -> OpenCodeResponse
Project one traced request without giving client protocol types to the SDK. Unobserved routes fail closed.
Auto Trait Implementations§
impl !RefUnwindSafe for OpenCodeAdapter
impl !UnwindSafe for OpenCodeAdapter
impl Freeze for OpenCodeAdapter
impl Send for OpenCodeAdapter
impl Sync for OpenCodeAdapter
impl Unpin for OpenCodeAdapter
impl UnsafeUnpin for OpenCodeAdapter
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