pub enum AsyncCall {
Navigate {
action: String,
route: Option<String>,
params: HashMap<String, String>,
url: Option<String>,
index: Option<usize>,
},
SetFocus {
node_id: NodeId,
},
MoveFocus {
direction: String,
},
Announce {
message: String,
},
}Expand description
Asynchronous call from JS → Rust. Returns immediately, enqueues work. These are processed on the next frame via the scheduler.
RULE: ALL mutations go through this path. Never through SyncCall.
Variants§
Navigate (push, pop, modal, deep link, etc.).
SetFocus
Set focus to a specific node.
MoveFocus
Move focus in a direction (Tab, Shift+Tab).
Announce
Announce a message via screen reader (VoiceOver/TalkBack).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AsyncCall
impl<'de> Deserialize<'de> for AsyncCall
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
Auto Trait Implementations§
impl Freeze for AsyncCall
impl RefUnwindSafe for AsyncCall
impl Send for AsyncCall
impl Sync for AsyncCall
impl Unpin for AsyncCall
impl UnsafeUnpin for AsyncCall
impl UnwindSafe for AsyncCall
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