pub struct ConversationStepHandler<S: Hash + Eq + Clone + Send + Sync + 'static> {
pub handler: Box<dyn Handler>,
pub conv_callback: ConversationCallback<S>,
}Expand description
A handler that participates in a conversation. It wraps a base Handler
for the matching logic, plus a conversation-aware callback.
Fields§
§handler: Box<dyn Handler>The underlying handler used for check_update.
conv_callback: ConversationCallback<S>The callback that produces a state transition.
Auto Trait Implementations§
impl<S> Freeze for ConversationStepHandler<S>
impl<S> !RefUnwindSafe for ConversationStepHandler<S>
impl<S> Send for ConversationStepHandler<S>
impl<S> Sync for ConversationStepHandler<S>
impl<S> Unpin for ConversationStepHandler<S>
impl<S> UnsafeUnpin for ConversationStepHandler<S>
impl<S> !UnwindSafe for ConversationStepHandler<S>
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