Skip to main content

VirtualRuntime

Type Alias VirtualRuntime 

Source
pub type VirtualRuntime<A> = Runtime<A, CaptureBackend>;
Expand description

Alias for a runtime using the virtual capture backend (testing/automation).

This is the type returned by Runtime::virtual_terminal() and Runtime::virtual_terminal_with_config(). Use this alias when you need to store or pass a virtual-terminal runtime without spelling out the backend type.

§Example

let vt: VirtualRuntime<MyApp> = Runtime::virtual_terminal(80, 24)?;

Aliased Type§

pub struct VirtualRuntime<A> { /* private fields */ }