pub struct Engine {
pub config: Config,
/* private fields */
}
Expand description
The core of a webkitten application. The engine handles configuration options and responding to lifecycle and user events from the UI.
Fields§
§config: Config
Implementations§
Trait Implementations§
Source§impl EventHandler for Engine
impl EventHandler for Engine
Source§fn on_new_frame_request<T, S>(&self, ui: &T, window_index: u32, uri: &str)where
T: ApplicationUI<S>,
S: ScriptingEngine,
fn on_new_frame_request<T, S>(&self, ui: &T, window_index: u32, uri: &str)where
T: ApplicationUI<S>,
S: ScriptingEngine,
Handle a request to open a URI in a new frame
Source§fn execute_command<T, S>(&self, ui: &T, window_index: Option<u32>, text: &str)where
T: ApplicationUI<S>,
S: ScriptingEngine,
fn execute_command<T, S>(&self, ui: &T, window_index: Option<u32>, text: &str)where
T: ApplicationUI<S>,
S: ScriptingEngine,
Handle a Return key press within the command bar
Source§fn close<T, S>(&self, _ui: &T)where
T: ApplicationUI<S>,
S: ScriptingEngine,
fn close<T, S>(&self, _ui: &T)where
T: ApplicationUI<S>,
S: ScriptingEngine,
Close the application
Source§fn command_completions<T, S>(&self, ui: &T, prefix: &str) -> Vec<String>where
T: ApplicationUI<S>,
S: ScriptingEngine,
fn command_completions<T, S>(&self, ui: &T, prefix: &str) -> Vec<String>where
T: ApplicationUI<S>,
S: ScriptingEngine,
Get available commands and/or arguments given a prefix
Source§fn on_buffer_event<T, S>(
&self,
ui: &T,
window_index: u32,
webview_index: u32,
uri: Option<&str>,
event: BufferEvent,
)where
T: ApplicationUI<S>,
S: ScriptingEngine,
fn on_buffer_event<T, S>(
&self,
ui: &T,
window_index: u32,
webview_index: u32,
uri: Option<&str>,
event: BufferEvent,
)where
T: ApplicationUI<S>,
S: ScriptingEngine,
Handle a buffer event Read more
Auto Trait Implementations§
impl Freeze for Engine
impl RefUnwindSafe for Engine
impl Send for Engine
impl Sync for Engine
impl Unpin for Engine
impl UnwindSafe for Engine
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