Struct sshx_server::web::protocol::WsWinsize
source · pub struct WsWinsize {
pub x: i32,
pub y: i32,
pub rows: u16,
pub cols: u16,
}
Expand description
Real-time message conveying the position and size of a terminal.
Fields§
§x: i32
The top-left x-coordinate of the window, offset from origin.
y: i32
The top-left y-coordinate of the window, offset from origin.
rows: u16
The number of rows in the window.
cols: u16
The number of columns in the terminal.
Trait Implementations§
source§impl<'de> Deserialize<'de> for WsWinsize
impl<'de> Deserialize<'de> for WsWinsize
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 PartialEq for WsWinsize
impl PartialEq for WsWinsize
impl Copy for WsWinsize
impl Eq for WsWinsize
impl StructuralEq for WsWinsize
impl StructuralPartialEq for WsWinsize
Auto Trait Implementations§
impl RefUnwindSafe for WsWinsize
impl Send for WsWinsize
impl Sync for WsWinsize
impl Unpin for WsWinsize
impl UnwindSafe for WsWinsize
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request