pub struct Hello {
pub client_version: String,
pub protocol: u32,
pub dog_name: Option<String>,
}Expand description
Client’s opening frame
No deny_unknown_fields: refusing an unknown field here would refuse a
newer client before protocol is read.
Fields§
§client_version: StringClient crate version (semver string)
protocol: u32crate::protocol::PROTOCOL_VERSION the client speaks
dog_name: Option<String>The name this client was registered under as a dog, when it is one.
None for every other client; a bare Client cannot set it. The
daemon needs it to name a dog it refuses at the handshake, which never
reaches Request::DogConfig. A dog reads its own name from
$SHEP_DOG_NAME.
Absent on the wire rather than null, so
crate::protocol::PROTOCOL_VERSION does not move for it.
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 Freeze for Hello
impl RefUnwindSafe for Hello
impl Send for Hello
impl Sync for Hello
impl Unpin for Hello
impl UnsafeUnpin for Hello
impl UnwindSafe for Hello
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.