[][src]Enum embedder_traits::EmbedderMsg

pub enum EmbedderMsg {
    Status(Option<String>),
    ChangePageTitle(Option<String>),
    MoveTo(DeviceIntPoint),
    ResizeTo(DeviceIntSize),
    Alert(StringIpcSender<()>),
    AllowNavigationRequest(PipelineIdServoUrl),
    AllowOpeningBrowser(IpcSender<bool>),
    BrowserCreated(TopLevelBrowsingContextId),
    AllowUnload(IpcSender<bool>),
    Keyboard(KeyboardEvent),
    SetCursor(Cursor),
    NewFavicon(ServoUrl),
    HeadParsed,
    HistoryChanged(Vec<ServoUrl>, usize),
    SetFullscreenState(bool),
    LoadStart,
    LoadComplete,
    CloseBrowser,
    Panic(StringOption<String>),
    GetSelectedBluetoothDevice(Vec<String>, IpcSender<Option<String>>),
    SelectFiles(Vec<FilterPattern>, boolIpcSender<Option<Vec<String>>>),
    ShowIME(InputMethodType),
    HideIME,
    Shutdown,
}

Variants

Status(Option<String>)

A status message to be displayed by the browser chrome.

ChangePageTitle(Option<String>)

Alerts the embedder that the current page has changed its title.

MoveTo(DeviceIntPoint)

Move the window to a point

ResizeTo(DeviceIntSize)

Resize the window to size

Alert(StringIpcSender<()>)AllowNavigationRequest(PipelineIdServoUrl)

Wether or not to allow a pipeline to load a url.

AllowOpeningBrowser(IpcSender<bool>)

Whether or not to allow script to open a new tab/browser

BrowserCreated(TopLevelBrowsingContextId)

A new browser was created by script

AllowUnload(IpcSender<bool>)

Wether or not to unload a document

Keyboard(KeyboardEvent)

Sends an unconsumed key event back to the embedder.

SetCursor(Cursor)

Changes the cursor.

NewFavicon(ServoUrl)

A favicon was detected

HeadParsed

tag finished parsing

HistoryChanged(Vec<ServoUrl>, usize)

The history state has changed.

SetFullscreenState(bool)

Enter or exit fullscreen

LoadStart

The load of a page has begun

LoadComplete

The load of a page has completed

CloseBrowser

A browser is to be closed

Panic(StringOption<String>)

A pipeline panicked. First string is the reason, second one is the backtrace.

GetSelectedBluetoothDevice(Vec<String>, IpcSender<Option<String>>)

Open dialog to select bluetooth device.

SelectFiles(Vec<FilterPattern>, boolIpcSender<Option<Vec<String>>>)

Open file dialog to select files. Set boolean flag to true allows to select multiple files.

ShowIME(InputMethodType)

Request to present an IME to the user when an editable element is focused.

HideIME

Request to hide the IME when the editable element is blurred.

Shutdown

Servo has shut down

Trait Implementations

impl Debug for EmbedderMsg[src]

impl Serialize for EmbedderMsg[src]

impl<'de> Deserialize<'de> for EmbedderMsg[src]

fn deserialize_in_place<D>(
    deserializer: D,
    place: &mut Self
) -> Result<(), <D as Deserializer<'de>>::Error> where
    D: Deserializer<'de>, 
[src]

Deserializes a value into self from the given Deserializer. Read more

Auto Trait Implementations

impl Send for EmbedderMsg

impl !Sync for EmbedderMsg

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T[src]

impl<T> Same for T[src]

type Output = T

Should always be Self