pub struct Chatend { /* private fields */ }Implementations§
Source§impl Chatend
impl Chatend
pub fn new() -> Self
pub fn boxes(&self) -> &[ChatBox]
pub fn accept_system( &mut self, text: String, ) -> Result<Option<BoxId>, TransitionError>
pub fn accept_user( &mut self, text: String, ) -> Result<Option<BoxId>, TransitionError>
pub fn accept_attachment(&mut self) -> Result<Option<BoxId>, TransitionError>
pub fn accept_async_return( &mut self, action_id: ActionId, result: Result<String, String>, ) -> Result<Option<BoxId>, TransitionError>
pub fn start_round(&mut self) -> Result<Option<BoxId>, TransitionError>
pub fn append_kennedy_text( &mut self, chunk: &str, ) -> Result<(), TransitionError>
pub fn collect_provider_call( &mut self, name: String, arguments: String, ) -> Result<(), TransitionError>
pub fn complete_provider_output( &mut self, action_ids: &[ActionId], ) -> Result<Vec<DispatchCall>, TransitionError>
pub fn complete_dispatch( &mut self, outcomes: Vec<DispatchOutcome>, ) -> Result<(), TransitionError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Chatend
impl RefUnwindSafe for Chatend
impl Send for Chatend
impl Sync for Chatend
impl Unpin for Chatend
impl UnsafeUnpin for Chatend
impl UnwindSafe for Chatend
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