Struct distant_protocol::PtySize
source · pub struct PtySize {
pub rows: u16,
pub cols: u16,
pub pixel_width: u16,
pub pixel_height: u16,
}
Expand description
Represents the size associated with a remote PTY
Fields§
§rows: u16
Number of lines of text
cols: u16
Number of columns of text
pixel_width: u16
Width of a cell in pixels. Note that some systems never fill this value and ignore it.
pixel_height: u16
Height of a cell in pixels. Note that some systems never fill this value and ignore it.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for PtySize
impl<'de> Deserialize<'de> for PtySize
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl FromStr for PtySize
impl FromStr for PtySize
source§fn from_str(s: &str) -> Result<Self, Self::Err>
fn from_str(s: &str) -> Result<Self, Self::Err>
Attempts to parse a str into PtySize using one of the following formats:
- rows,cols (defaults to 0 for pixel_width & pixel_height)
- rows,cols,pixel_width,pixel_height
§type Err = PtySizeParseError
type Err = PtySizeParseError
The associated error which can be returned from parsing.
source§impl PartialEq<PtySize> for PtySize
impl PartialEq<PtySize> for PtySize
impl Copy for PtySize
impl Eq for PtySize
impl StructuralEq for PtySize
impl StructuralPartialEq for PtySize
Auto Trait Implementations§
impl RefUnwindSafe for PtySize
impl Send for PtySize
impl Sync for PtySize
impl Unpin for PtySize
impl UnwindSafe for PtySize
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