pub enum CoreAction {
AnalyzeSelection,
SummarizePage,
SyncState,
}Expand description
Actions that can be dispatched to the core state machine.
Add new variants here when extending the extension’s capabilities.
Each action maps to a handler in CoreState::dispatch.
Variants§
AnalyzeSelection
Analyze text selected by the user on a web page.
SummarizePage
Summarize the current page content.
SyncState
Synchronize state between surfaces (heartbeat / init).
Trait Implementations§
Source§impl Clone for CoreAction
impl Clone for CoreAction
Source§fn clone(&self) -> CoreAction
fn clone(&self) -> CoreAction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CoreAction
impl Debug for CoreAction
Source§impl<'de> Deserialize<'de> for CoreAction
impl<'de> Deserialize<'de> for CoreAction
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 CoreAction
impl RefUnwindSafe for CoreAction
impl Send for CoreAction
impl Sync for CoreAction
impl Unpin for CoreAction
impl UnsafeUnpin for CoreAction
impl UnwindSafe for CoreAction
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