Skip to main content

DrivenPage

Trait DrivenPage 

Source
pub trait DrivenPage {
    // 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 the host drives one statement at a time and can observe between statements.

Required Methods§

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.

Implementations on Foreign Types§

Source§

impl DrivenPage for Box<dyn RemotePage + '_>

Implementors§