pub struct Hello {
pub protocol: (u16, u16),
pub client: String,
pub os_keyboard: bool,
}Expand description
The first request on a connection.
Fields§
§protocol: (u16, u16)The client’s crate::PROTOCOL.
client: StringThe client’s name and version.
os_keyboard: boolWhether the client wants uncaptured keys sent through the OS.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Hello
impl<'de> Deserialize<'de> for Hello
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
impl Eq for Hello
impl StructuralPartialEq for Hello
Auto Trait Implementations§
impl Forget for Hello
impl Freeze for Hello
impl Move for Hello
impl RefUnwindSafe for Hello
impl Send for Hellowhere
RawVecInner: Send,
impl Sync for Hellowhere
RawVecInner: Sync,
impl Unpin for Hello
impl UnsafeUnpin for Hello
impl UnwindSafe for Hellowhere
RawVecInner: UnwindSafe,
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