[][src]Struct servo::Servo

pub struct Servo<Window: WindowMethods + 'static> {
    compositor: IOCompositor<Window>,
    constellation_chan: Sender<ConstellationMsg>,
    embedder_receiver: EmbedderReceiver,
    embedder_events: Vec<(Option<BrowserId>, EmbedderMsg)>,
}

The in-process interface to Servo.

It does everything necessary to render the web, primarily orchestrating the interaction between JavaScript, CSS layout, rendering, and the client window.

Clients create a Servo instance for a given reference-counted type implementing WindowMethods, which is the bridge to whatever application Servo is embedded in. Clients then create an event loop to pump messages between the embedding application and various browser components.

Fields

compositor: IOCompositor<Window>constellation_chan: Sender<ConstellationMsg>embedder_receiver: EmbedderReceiverembedder_events: Vec<(Option<BrowserId>, EmbedderMsg)>

Methods

impl<Window> Servo<Window> where
    Window: WindowMethods + 'static, 
[src]

pub fn new(window: Rc<Window>) -> Servo<Window>[src]

fn handle_window_event(&mut self, event: WindowEvent)[src]

fn receive_messages(&mut self)[src]

pub fn get_events(&mut self) -> Vec<(Option<BrowserId>, EmbedderMsg)>[src]

pub fn handle_events(&mut self, events: Vec<WindowEvent>)[src]

pub fn repaint_synchronously(&mut self)[src]

pub fn pinch_zoom_level(&self) -> f32[src]

pub fn setup_logging(&self)[src]

pub fn deinit(self)[src]

Auto Trait Implementations

impl<Window> !Send for Servo<Window>

impl<Window> !Sync for Servo<Window>

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Erased for T[src]

impl<T> Same for T[src]

type Output = T

Should always be Self

impl<T> SetParameter for T[src]

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 
[src]

Sets value as a parameter of self.

impl<T> MaybeBoxed for T[src]

impl<T> MaybeBoxed for T[src]