pub struct PtyModes { /* private fields */ }
Expand description
Encodes modes for Pty allocation requests. The modes documented in https://tools.ietf.org/html/rfc4250#section-4.5 are supported.
Implementations§
Source§impl PtyModes
impl PtyModes
Sourcepub fn new() -> Self
pub fn new() -> Self
Construct a PtyModes instance so that you can specify values for various modes
Sourcepub fn set_u32<O: Into<ExtensiblePtyModeOpcode>>(
&mut self,
option: O,
value: u32,
)
pub fn set_u32<O: Into<ExtensiblePtyModeOpcode>>( &mut self, option: O, value: u32, )
Set a mode to an arbitrary u32 value
Sourcepub fn set_boolean<O: Into<ExtensiblePtyModeOpcode>>(
&mut self,
option: O,
value: bool,
)
pub fn set_boolean<O: Into<ExtensiblePtyModeOpcode>>( &mut self, option: O, value: bool, )
Set a mode to a boolean value
Sourcepub fn set_character<O: Into<ExtensiblePtyModeOpcode>>(
&mut self,
option: O,
c: Option<char>,
)
pub fn set_character<O: Into<ExtensiblePtyModeOpcode>>( &mut self, option: O, c: Option<char>, )
Set a mode to a character value. If the character is None it is set to 255 to indicate that it is disabled. While this interface and the protocol accept unicode characters of up to 32 bits in width, these options likely only work for characters in the 7-bit ascii range.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PtyModes
impl RefUnwindSafe for PtyModes
impl Send for PtyModes
impl Sync for PtyModes
impl Unpin for PtyModes
impl UnwindSafe for PtyModes
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