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§
fn drive(&mut self, d: &Drive) -> Result<(), DriveError>
Sourcefn unhandled_failure(&self) -> Option<String>
fn unhandled_failure(&self) -> Option<String>
The first action failure no handler absorbed, if any.
Sourcefn snapshot(&mut self) -> Result<DocSnapshot, String>
fn snapshot(&mut self) -> Result<DocSnapshot, String>
The page as it stands.