pub struct Adapter { /* private fields */ }Implementations§
Source§impl Adapter
impl Adapter
pub async fn open(config: Config) -> Result<Self, Error>
pub async fn start_turn( &self, conversation_key: impl Into<String>, input: impl Into<String>, ) -> Result<Turn, Error>
pub async fn close_conversation( &self, key: impl Into<String>, ) -> Result<(), Error>
pub fn diagnostics(&self) -> Vec<u8> ⓘ
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Adapter
impl RefUnwindSafe for Adapter
impl Send for Adapter
impl Sync for Adapter
impl Unpin for Adapter
impl UnsafeUnpin for Adapter
impl UnwindSafe for Adapter
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