Skip to main content

RemotePage

Trait RemotePage 

Source
pub trait RemotePage {
    // Required methods
    fn drive(&mut self, d: &Drive) -> Result<(), DriveError>;
    fn unhandled_failure(&self) -> Option<String>;
    fn snapshot(&mut self) -> Result<DocSnapshot, String>;
}
Expand description

A page executed somewhere other than this process — a real browser, driven over its own transport. Whoever implements it starts the page (serving its bundle, loading it) and then answers the same two questions every tier answers: carry out a statement, show the page.

Required Methods§

Trait Implementations§

Source§

impl DrivenPage for Box<dyn RemotePage + '_>

Source§

fn drive(&mut self, d: &Drive) -> Result<(), DriveError>

Source§

fn unhandled_failure(&self) -> Option<String>

The first action failure no handler absorbed, if any.
Source§

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

The page as it stands.

Implementors§