pub struct ReplOptions {
pub connection: Connection,
pub codec: Symbol,
pub prompt: String,
pub driver: DriverSpec,
pub input: Option<String>,
pub output: ReplOutput,
}Expand description
Configuration for a single run_repl invocation.
Fields§
§connection: ConnectionConnection used to evaluate each line.
codec: SymbolCodec used to decode input and encode rendered results.
prompt: StringPrompt string shown before each interactive read.
driver: DriverSpecDriver that supplies input lines and receives output.
input: Option<String>Optional single input to evaluate once instead of looping.
output: ReplOutputWhere to send the rendered result.
Auto Trait Implementations§
impl !RefUnwindSafe for ReplOptions
impl !UnwindSafe for ReplOptions
impl Freeze for ReplOptions
impl Send for ReplOptions
impl Sync for ReplOptions
impl Unpin for ReplOptions
impl UnsafeUnpin for ReplOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more