pub struct HandshakeResponse {
pub status: HandshakeStatus,
pub protocol_version: u8,
pub server_version: String,
pub reason: Option<String>,
}Expand description
Response sent by the daemon after validating the handshake.
Fields§
§status: HandshakeStatusWhether the handshake succeeded or failed.
protocol_version: u8Wire protocol version of the daemon.
server_version: StringSemantic version of the daemon binary.
reason: Option<String>Human-readable reason for rejection (only set when status is Error).
Implementations§
Trait Implementations§
Source§impl Debug for HandshakeResponse
impl Debug for HandshakeResponse
Source§impl<'de> Deserialize<'de> for HandshakeResponse
impl<'de> Deserialize<'de> for HandshakeResponse
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 HandshakeResponse
impl RefUnwindSafe for HandshakeResponse
impl Send for HandshakeResponse
impl Sync for HandshakeResponse
impl Unpin for HandshakeResponse
impl UnsafeUnpin for HandshakeResponse
impl UnwindSafe for HandshakeResponse
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