pub struct CopilotBackend { /* private fields */ }Implementations§
Trait Implementations§
Source§impl AiBackend for CopilotBackend
impl AiBackend for CopilotBackend
fn name(&self) -> &str
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 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,
Auto Trait Implementations§
impl Freeze for CopilotBackend
impl RefUnwindSafe for CopilotBackend
impl Send for CopilotBackend
impl Sync for CopilotBackend
impl Unpin for CopilotBackend
impl UnsafeUnpin for CopilotBackend
impl UnwindSafe for CopilotBackend
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