Struct rustbox::InitOptions [] [src]

pub struct InitOptions {
    pub input_mode: InputMode,
    pub output_mode: OutputMode,
    pub buffer_stderr: bool,
}

Fields

Use this option to initialize with a specific input mode

See InputMode enum for details on the variants.

Use this option to initialize with a specific output mode

See OutputMode enum for details on the variants.

Use this option to automatically buffer stderr while RustBox is running. It will be written when RustBox exits.

This option uses a nonblocking OS pipe to buffer stderr output. This means that if the pipe fills up, subsequent writes will fail until RustBox exits. If this is a concern for your program, don't use RustBox's default pipe-based redirection; instead, redirect stderr to a log file or another process that is capable of handling it better.

Trait Implementations

impl Clone for InitOptions
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for InitOptions
[src]

impl Debug for InitOptions
[src]

Formats the value using the given formatter.

impl Default for InitOptions
[src]

Returns the "default value" for a type. Read more