pub struct OpencodeAdapter { /* private fields */ }Implementations§
Source§impl OpencodeAdapter
impl OpencodeAdapter
pub fn new( target: &BackendConfig, gateway_ctx: Option<&GatewayContext>, credential_config: Option<&Value>, ) -> Result<Self, BackendError>
Trait Implementations§
Source§impl BackendAdapter for OpencodeAdapter
impl BackendAdapter for OpencodeAdapter
Source§fn send_message<'life0, 'life1, 'async_trait>(
&'life0 self,
message: &'life1 InboundMessage,
) -> Pin<Box<dyn Future<Output = Result<(), BackendError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn send_message<'life0, 'life1, 'async_trait>(
&'life0 self,
message: &'life1 InboundMessage,
) -> Pin<Box<dyn Future<Output = Result<(), BackendError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send a normalized message to the backend
Source§fn supports_files(&self) -> bool
fn supports_files(&self) -> bool
Whether this backend supports file attachments
Auto Trait Implementations§
impl Freeze for OpencodeAdapter
impl !RefUnwindSafe for OpencodeAdapter
impl Send for OpencodeAdapter
impl Sync for OpencodeAdapter
impl Unpin for OpencodeAdapter
impl UnsafeUnpin for OpencodeAdapter
impl !UnwindSafe for OpencodeAdapter
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