pub enum Action {
Show 15 variants
ChangeView(u32),
CloseCurrentView,
CloseView(u32),
CreateView(PageType),
GoBackward,
GoForward,
GoToUrl(Url),
Refresh,
SendKeyboardEvent(Event),
SendMouseEvent(Event, Point),
Update,
Resize(Size<u32>),
CopySelection,
FetchComplete(ViewId, String, Result<(String, HashMap<String, String>), String>),
ImageFetchComplete(ViewId, String, Result<Vec<u8>, String>, bool, u64),
}Expand description
Handles Actions for Basic webview
Variants§
ChangeView(u32)
Changes view to the desired view index
CloseCurrentView
Closes current window & makes last used view the current one
CloseView(u32)
Closes specific view index
CreateView(PageType)
Creates a new view and makes its index view + 1
GoBackward
GoForward
GoToUrl(Url)
Refresh
SendKeyboardEvent(Event)
SendMouseEvent(Event, Point)
Update
Allows users to control when the browser engine proccesses interactions in subscriptions
Resize(Size<u32>)
CopySelection
Copy the current text selection to clipboard
FetchComplete(ViewId, String, Result<(String, HashMap<String, String>), String>)
Internal: carries the result of a URL fetch for engines without native URL support.
On success returns (html, css_cache).
ImageFetchComplete(ViewId, String, Result<Vec<u8>, String>, bool, u64)
Internal: carries the result of an image fetch.
The bool is redraw_on_ready — when true, the image doesn’t affect
layout so doc.render() can be skipped (redraw only).
The u64 is the navigation epoch — stale results are discarded.
Trait Implementations§
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<State, Message> IntoBoot<State, Message> for State
impl<State, Message> IntoBoot<State, Message> for State
Source§fn into_boot(self) -> (State, Task<Message>)
fn into_boot(self) -> (State, Task<Message>)
Turns some type into the initial state of some
Application.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more