[][src]Struct async_ssh2::PtyModes

pub struct PtyModes { /* fields omitted */ }

Encodes modes for Pty allocation requests. The modes documented in https://tools.ietf.org/html/rfc4250#section-4.5 are supported.

Implementations

impl PtyModes[src]

pub fn new() -> PtyModes[src]

Construct a PtyModes instance so that you can specify values for various modes

pub fn set_u32<O>(&mut self, option: O, value: u32) where
    O: Into<ExtensiblePtyModeOpcode>, 
[src]

Set a mode to an arbitrary u32 value

pub fn set_boolean<O>(&mut self, option: O, value: bool) where
    O: Into<ExtensiblePtyModeOpcode>, 
[src]

Set a mode to a boolean value

pub fn set_character<O>(&mut self, option: O, c: Option<char>) where
    O: Into<ExtensiblePtyModeOpcode>, 
[src]

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.

pub fn finish(self) -> Vec<u8>[src]

Finish accumulating modes and return the encoded byte stream suitable for use in the ssh2 protocol

Trait Implementations

impl Clone for PtyModes[src]

impl Debug for PtyModes[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.