Struct distant_core::data::PtySize
source · [−]Expand description
Represents the size associated with a remote PTY
Fields
rows: u16Number of lines of text
cols: u16Number of columns of text
pixel_width: u16Width of a cell in pixels. Note that some systems never fill this value and ignore it.
pixel_height: u16Height of a cell in pixels. Note that some systems never fill this value and ignore it.
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for PtySize
impl<'de> Deserialize<'de> for PtySize
sourcefn 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
sourceimpl From<PtySize> for PtySize
impl From<PtySize> for PtySize
sourcefn from(size: PortablePtySize) -> Self
fn from(size: PortablePtySize) -> Self
Converts to this type from the input type.
sourceimpl From<PtySize> for PortablePtySize
impl From<PtySize> for PortablePtySize
sourceimpl FromStr for PtySize
impl FromStr for PtySize
sourcefn 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.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more