pub struct LineEndingConfig {
pub omap: LineEnding,
pub imap: LineEnding,
pub emap: LineEnding,
}Expand description
The full set of line-ending mappers for a session’s byte streams.
Holds one LineEnding rule per direction:
omap— outbound (applied to bytes sent to the device)imap— inbound (applied to bytes received from the device)emap— echo map (applied to local echo display)
Default returns all three set to LineEnding::None — i.e. the
transparent configuration that passes every byte through unchanged.
Fields§
§omap: LineEndingOutbound mapper — bytes typed by the user before they reach the device.
imap: LineEndingInbound mapper — bytes received from the device before they reach the screen.
emap: LineEndingEcho mapper — applied to the local echo of outbound bytes when echo is on.
Trait Implementations§
Source§impl Clone for LineEndingConfig
impl Clone for LineEndingConfig
Source§fn clone(&self) -> LineEndingConfig
fn clone(&self) -> LineEndingConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LineEndingConfig
impl Debug for LineEndingConfig
Source§impl Default for LineEndingConfig
impl Default for LineEndingConfig
Source§fn default() -> LineEndingConfig
fn default() -> LineEndingConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for LineEndingConfig
impl PartialEq for LineEndingConfig
impl Copy for LineEndingConfig
impl Eq for LineEndingConfig
impl StructuralPartialEq for LineEndingConfig
Auto Trait Implementations§
impl Freeze for LineEndingConfig
impl RefUnwindSafe for LineEndingConfig
impl Send for LineEndingConfig
impl Sync for LineEndingConfig
impl Unpin for LineEndingConfig
impl UnsafeUnpin for LineEndingConfig
impl UnwindSafe for LineEndingConfig
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