[−][src]Struct ssh2::PtyModes
Encodes modes for Pty allocation requests. The modes documented in https://tools.ietf.org/html/rfc4250#section-4.5 are supported.
Methods
impl PtyModes
[src]
pub fn new() -> Self
[src]
Construct a PtyModes instance so that you can specify values for various modes
pub fn set_u32<O: Into<ExtensiblePtyModeOpcode>>(
&mut self,
option: O,
value: u32
)
[src]
&mut self,
option: O,
value: u32
)
Set a mode to an arbitrary u32 value
pub fn set_boolean<O: Into<ExtensiblePtyModeOpcode>>(
&mut self,
option: O,
value: bool
)
[src]
&mut self,
option: O,
value: bool
)
Set a mode to a boolean value
pub fn set_character<O: Into<ExtensiblePtyModeOpcode>>(
&mut self,
option: O,
c: Option<char>
)
[src]
&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.
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
Auto Trait Implementations
impl RefUnwindSafe for PtyModes
impl Send for PtyModes
impl Sync for PtyModes
impl Unpin for PtyModes
impl UnwindSafe for PtyModes
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,