Skip to main content

Embedded

Trait Embedded 

Source
pub trait Embedded: Send {
    // Required methods
    fn place(&mut self, place: &Placement) -> Result<(), String>;
    fn pump(&mut self) -> Result<(), String>;
    fn own_window(&self) -> bool;
    fn closed(&self) -> bool;
    fn take_links(&mut self) -> Vec<String>;
}
Expand description

A web view open. A failure’s text is shown on the error page.

Required Methods§

Source

fn place(&mut self, place: &Placement) -> Result<(), String>

Moves and sizes it (a child; its own window ignores this).

Source

fn pump(&mut self) -> Result<(), String>

Turns the web view’s loop once, without blocking.

Source

fn own_window(&self) -> bool

Whether it is in a window of its own.

Source

fn closed(&self) -> bool

Whether the user closed its own window.

The addresses it was asked to go to and did not: opened outside, through the links service.

Implementors§