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 PortablePtySize
impl From<PtySize> for PortablePtySize
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 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 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
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> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more