#[non_exhaustive]pub enum AppEvent {
Ipc(IpcCall),
StateChange {
key: String,
timestamp: DateTime<Utc>,
caused_by: Option<String>,
},
DomMutation {
webview_label: String,
timestamp: DateTime<Utc>,
mutation_count: u32,
},
DomInteraction {
action: InteractionKind,
selector: String,
value: Option<String>,
timestamp: DateTime<Utc>,
webview_label: String,
},
WindowEvent {
label: String,
event: String,
timestamp: DateTime<Utc>,
},
}Expand description
Application event captured by the introspection layer.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ipc(IpcCall)
An IPC call between webview and Rust backend.
StateChange
A change to application state in the backend.
Fields
DomMutation
A batch of DOM mutations observed in a webview.
Fields
DomInteraction
A user interaction captured from the DOM during recording.
Fields
§
action: InteractionKindWhat kind of interaction occurred.
WindowEvent
A native window lifecycle event (e.g. focus, resize, close).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AppEvent
impl<'de> Deserialize<'de> for AppEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AppEvent
impl StructuralPartialEq for AppEvent
Auto Trait Implementations§
impl Freeze for AppEvent
impl RefUnwindSafe for AppEvent
impl Send for AppEvent
impl Sync for AppEvent
impl Unpin for AppEvent
impl UnsafeUnpin for AppEvent
impl UnwindSafe for AppEvent
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