[][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)>,
    profiler_enabled: bool,

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.


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


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

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, U> Into for T where
    U: From<T>, 

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized

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

impl<T> BorrowMut for T where
    T: ?Sized

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

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>, 

Sets value as a parameter of self.

impl<T> MaybeBoxed for T[src]

impl<T> MaybeBoxed for T[src]