pub enum Event {
Key(KeyEvent),
Mouse(MouseEvent),
Resize(Size),
Focus,
Blur,
Tick,
TaskComplete(String),
WorkerDone(WorkerId, String),
Timer(u64),
}Expand description
框架事件
Variants§
Key(KeyEvent)
Mouse(MouseEvent)
Resize(Size)
Focus
获得焦点
Blur
失去焦点
Tick
TaskComplete(String)
后台任务完成,携带结果数据
WorkerDone(WorkerId, String)
Worker finished (success or cancelled). String is result or empty if cancelled.
Timer(u64)
定时器触发,携带 timer id
Implementations§
Trait Implementations§
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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