pub enum PluginEvent {
Identified(String),
RequestBrowser(BrowserRequest),
RequestCaptcha(String),
ResultReady(StreamInfo),
Error(ErrorCode),
}Expand description
— PLUGIN NAMESPACE — Events sent by the WASM Extension to the Core
Variants§
Identified(String)
“I can handle this URL”
RequestBrowser(BrowserRequest)
“I need the browser to sniff a pattern”
RequestCaptcha(String)
“I need the user to solve a captcha”
ResultReady(StreamInfo)
“Here is the final stream data”
Error(ErrorCode)
“Something went wrong in the logic”
Trait Implementations§
Source§impl Clone for PluginEvent
impl Clone for PluginEvent
Source§fn clone(&self) -> PluginEvent
fn clone(&self) -> PluginEvent
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 moreAuto Trait Implementations§
impl Freeze for PluginEvent
impl RefUnwindSafe for PluginEvent
impl Send for PluginEvent
impl Sync for PluginEvent
impl Unpin for PluginEvent
impl UnwindSafe for PluginEvent
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