pub struct DaemonHello {
pub client_version: String,
pub protocol_version: u32,
}Expand description
Pre-handshake header sent as the very first frame by a CLI client.
The server responds with DaemonHelloResponse before the
JSON-RPC request loop begins.
Fields§
§client_version: StringFree-form client identifier (env!("CARGO_PKG_VERSION") plus
user-agent suffix). Informational only.
protocol_version: u32Wire protocol version. Phase 8a accepts exactly 1.
Trait Implementations§
Source§impl Clone for DaemonHello
impl Clone for DaemonHello
Source§fn clone(&self) -> DaemonHello
fn clone(&self) -> DaemonHello
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DaemonHello
impl Debug for DaemonHello
Source§impl<'de> Deserialize<'de> for DaemonHello
impl<'de> Deserialize<'de> for DaemonHello
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
Auto Trait Implementations§
impl Freeze for DaemonHello
impl RefUnwindSafe for DaemonHello
impl Send for DaemonHello
impl Sync for DaemonHello
impl Unpin for DaemonHello
impl UnsafeUnpin for DaemonHello
impl UnwindSafe for DaemonHello
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