pub struct ConversationState { /* private fields */ }Implementations§
Source§impl ConversationState
impl ConversationState
pub fn new(session: [u8; 12]) -> Self
pub fn recover( session: [u8; 12], boxes: Vec<ChatBox>, force: bool, ) -> Result<Self, String>
pub fn boxes(&self) -> &[ChatBox]
pub fn status(&self) -> Status
pub fn accept(&mut self, arrival: Arrival) -> Result<(), String>
pub fn begin(&mut self) -> Result<Option<Start>, String>
pub fn prepare_stage( &mut self, job: u64, text: String, values: Vec<BoxValue>, ) -> Result<Vec<PreparedCall>, String>
pub fn complete( &mut self, job: u64, output: ShimOutput<BoxValue>, ) -> Result<(), String>
pub fn fail( &mut self, job: u64, message: String, restartable_before_launch: bool, )
pub fn restart(&mut self) -> Result<(), RestartError>
Auto Trait Implementations§
impl Freeze for ConversationState
impl RefUnwindSafe for ConversationState
impl Send for ConversationState
impl Sync for ConversationState
impl Unpin for ConversationState
impl UnsafeUnpin for ConversationState
impl UnwindSafe for ConversationState
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