Skip to main content

Tape

Trait Tape 

Source
pub trait Tape: Send + Sync {
    // Required methods
    fn record(&self, entry: TapeEntry);
    fn next(&self, kind: &str, input: &str) -> Option<Result<Value, String>>;
}
Expand description

Where recorded calls are kept.

Required Methods§

Source

fn record(&self, entry: TapeEntry)

Append a call.

Source

fn next(&self, kind: &str, input: &str) -> Option<Result<Value, String>>

Take the next unreplayed output recorded for kind and input, in recording order. None when the tape holds no (more) such call.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§