pub struct Settings {
pub raw_input: bool,
pub echo_input: Option<bool>,
pub line_input: Option<bool>,
pub interrupt_signals: Option<bool>,
pub output_nl_as_nlcr: Option<bool>,
}Expand description
Describes high-level terminal settings that can be requested.
Fields§
§raw_input: boolWhether to put the terminal in raw mode, as cfmakeraw does: input
arrives a byte at a time, as typed, without being echoed, translated
(e.g., Enter to newline), or turned into signals, and output isn’t
processed. The other settings then apply on top of it (e.g., to have
newlines output as CRLF pairs).
echo_input: Option<bool>Whether to enable input echoing.
line_input: Option<bool>Whether to enable line input (sometimes known as canonical mode).
interrupt_signals: Option<bool>Whether to disable interrupt signals and instead yield the control characters.
output_nl_as_nlcr: Option<bool>Whether to output newline characters as CRLF pairs.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnsafeUnpin for Settings
impl UnwindSafe for Settings
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more