pub struct CopilotProvider { /* private fields */ }Trait Implementations§
Source§impl AiProvider for CopilotProvider
impl AiProvider for CopilotProvider
Source§fn is_available<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn is_available<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Check whether this provider is available (e.g., CLI tool is installed).
Source§fn request<'life0, 'life1, 'async_trait>(
&'life0 self,
req: &'life1 AiRequest,
_events: Option<UnboundedSender<AiEvent>>,
) -> Pin<Box<dyn Future<Output = Result<AiResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn request<'life0, 'life1, 'async_trait>(
&'life0 self,
req: &'life1 AiRequest,
_events: Option<UnboundedSender<AiEvent>>,
) -> Pin<Box<dyn Future<Output = Result<AiResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send a request to the AI provider. Read more
Auto Trait Implementations§
impl Freeze for CopilotProvider
impl RefUnwindSafe for CopilotProvider
impl Send for CopilotProvider
impl Sync for CopilotProvider
impl Unpin for CopilotProvider
impl UnsafeUnpin for CopilotProvider
impl UnwindSafe for CopilotProvider
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