pub struct DisabledCommandHost;Expand description
Stub used by hosts that do not provide context-aware command facilities.
Trait Implementations§
Source§impl CommandHost for DisabledCommandHost
impl CommandHost for DisabledCommandHost
Source§fn turn_context<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<CommandTurnContext>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn turn_context<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<CommandTurnContext>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Assemble the credential-free context a main turn would see.
Source§fn completion<'life0, 'async_trait>(
&'life0 self,
_request: SessionCompletionRequest,
) -> Pin<Box<dyn Future<Output = Result<SessionCompletion, SessionCompletionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn completion<'life0, 'async_trait>(
&'life0 self,
_request: SessionCompletionRequest,
) -> Pin<Box<dyn Future<Output = Result<SessionCompletion, SessionCompletionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Run a tool-less completion against the resolved session model.
Source§fn completion_stream<'life0, 'async_trait>(
&'life0 self,
_request: SessionCompletionRequest,
) -> Pin<Box<dyn Future<Output = Result<SessionCompletionStream, SessionCompletionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn completion_stream<'life0, 'async_trait>(
&'life0 self,
_request: SessionCompletionRequest,
) -> Pin<Box<dyn Future<Output = Result<SessionCompletionStream, SessionCompletionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Stream a tool-less completion. The default advertises an unsupported
capability so commands can fall back to
Self::completion.Auto Trait Implementations§
impl Freeze for DisabledCommandHost
impl RefUnwindSafe for DisabledCommandHost
impl Send for DisabledCommandHost
impl Sync for DisabledCommandHost
impl Unpin for DisabledCommandHost
impl UnsafeUnpin for DisabledCommandHost
impl UnwindSafe for DisabledCommandHost
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