pub struct LangShell { /* private fields */ }Implementations§
Source§impl LangShell
impl LangShell
pub fn builder() -> LangShellBuilder
pub async fn run(&self, request: RunRequest) -> RunResult
pub async fn validate(&self, request: RunRequest) -> RunResult
pub fn session(&self, session_id: impl Into<String>) -> SessionHandle
pub fn typescript_session(&self, session_id: impl Into<String>) -> SessionHandle
pub fn session_with_language( &self, session_id: impl Into<String>, language: Language, ) -> SessionHandle
pub async fn create_session( &self, session_id: impl Into<String>, ) -> Result<(), ErrorObject>
pub async fn create_session_with_language( &self, session_id: impl Into<String>, language: Language, ) -> Result<(), ErrorObject>
pub async fn list_sessions(&self) -> Vec<SessionId>
pub async fn destroy_session( &self, session_id: impl Into<String>, ) -> Result<bool, ErrorObject>
pub async fn snapshot_session( &self, session_id: impl Into<String>, ) -> Result<Vec<u8>, ErrorObject>
pub async fn snapshot_session_with_language( &self, session_id: impl Into<String>, language: Language, ) -> Result<Vec<u8>, ErrorObject>
pub async fn restore_session( &self, snapshot: &[u8], session_id: Option<impl Into<String>>, ) -> Result<SessionId, ErrorObject>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LangShell
impl !RefUnwindSafe for LangShell
impl Send for LangShell
impl Sync for LangShell
impl Unpin for LangShell
impl UnsafeUnpin for LangShell
impl !UnwindSafe for LangShell
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