pub enum SecretaryEvent<State> {
Started,
Stopped,
InputReceived,
OutputSent,
StateChanged,
Custom(String),
// some variants omitted
}Expand description
秘书内部事件
Variants§
Started
秘书启动
Stopped
秘书停止
InputReceived
收到用户输入
OutputSent
发送了输出
StateChanged
状态变更
Custom(String)
自定义事件
Trait Implementations§
Auto Trait Implementations§
impl<State> Freeze for SecretaryEvent<State>
impl<State> RefUnwindSafe for SecretaryEvent<State>where
State: RefUnwindSafe,
impl<State> Send for SecretaryEvent<State>where
State: Send,
impl<State> Sync for SecretaryEvent<State>where
State: Sync,
impl<State> Unpin for SecretaryEvent<State>where
State: Unpin,
impl<State> UnsafeUnpin for SecretaryEvent<State>
impl<State> UnwindSafe for SecretaryEvent<State>where
State: UnwindSafe,
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