pub struct InProcessCodeModeSession { /* private fields */ }Implementations§
Source§impl InProcessCodeModeSession
impl InProcessCodeModeSession
pub fn new() -> Self
pub fn with_delegate(delegate: Arc<dyn CodeModeSessionDelegate>) -> Self
pub fn with_delegate_and_task_failure_handler( delegate: Arc<dyn CodeModeSessionDelegate>, task_failure_handler: Arc<dyn Fn(String) + Send + Sync>, ) -> Self
pub async fn execute( &self, request: ExecuteRequest, ) -> Result<StartedCell, String>
pub async fn execute_to_pending( &self, request: ExecuteRequest, ) -> Result<ExecuteToPendingOutcome, String>
pub async fn wait(&self, request: WaitRequest) -> Result<WaitOutcome, String>
pub async fn terminate(&self, cell_id: CellId) -> Result<WaitOutcome, String>
pub async fn wait_to_pending( &self, request: WaitToPendingRequest, ) -> Result<WaitToPendingOutcome, String>
pub async fn shutdown(&self) -> Result<(), String>
Trait Implementations§
Source§impl CodeModeSession for InProcessCodeModeSession
impl CodeModeSession for InProcessCodeModeSession
fn execute<'a>( &'a self, request: ExecuteRequest, ) -> CodeModeSessionResultFuture<'a, StartedCell>
fn wait<'a>( &'a self, request: WaitRequest, ) -> CodeModeSessionResultFuture<'a, WaitOutcome>
fn terminate<'a>( &'a self, cell_id: CellId, ) -> CodeModeSessionResultFuture<'a, WaitOutcome>
fn shutdown<'a>(&'a self) -> CodeModeSessionResultFuture<'a, ()>
Auto Trait Implementations§
impl !RefUnwindSafe for InProcessCodeModeSession
impl !UnwindSafe for InProcessCodeModeSession
impl Freeze for InProcessCodeModeSession
impl Send for InProcessCodeModeSession
impl Sync for InProcessCodeModeSession
impl Unpin for InProcessCodeModeSession
impl UnsafeUnpin for InProcessCodeModeSession
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more