pub enum Activity<'a> {
PointerDown {
form: ComponentId,
event: PointerEvent,
},
PointerUp {
form: ComponentId,
event: PointerEvent,
},
PointerMove {
form: ComponentId,
event: PointerEvent,
},
Wheel {
form: ComponentId,
event: WheelEvent,
},
KeyDown {
form: ComponentId,
event: KeyEvent,
},
KeyUp {
form: ComponentId,
event: KeyEvent,
},
Text {
form: ComponentId,
text: &'a str,
},
Event {
component: ComponentId,
event: &'a str,
handler: &'a str,
},
FormShown {
form: ComponentId,
modal: bool,
},
FormClosed {
form: ComponentId,
},
Error {
message: &'a str,
},
Custom {
name: &'a str,
value: &'a str,
},
}Expand description
Algo que aconteceu no app.
Variants§
PointerDown
PointerUp
PointerMove
O ponteiro andou (muitos por segundo: quem grava decide se guarda).
Wheel
KeyDown
KeyUp
Text
Event
Um evento com handler disparou (handler vazio: closure em Rust).
FormShown
FormClosed
Fields
§
form: ComponentIdError
Um erro do app (pânico, falha que o código quis registrar).
Custom
Uma métrica do próprio app (Analytics::track): nome e valor.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Activity<'a>
impl<'a> Freeze for Activity<'a>
impl<'a> Move for Activity<'a>
impl<'a> RefUnwindSafe for Activity<'a>
impl<'a> Send for Activity<'a>
impl<'a> Sync for Activity<'a>
impl<'a> Unpin for Activity<'a>
impl<'a> UnsafeUnpin for Activity<'a>
impl<'a> UnwindSafe for Activity<'a>
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