use semver::Version; use serde::{Deserialize, Serialize}; use crate::instance::Instance; /// Sent by the initiator of a new inter-daemon connection. #[derive(Clone, Debug, Serialize, Deserialize)] pub struct InitiateHandshake { pub version: Version, } /// Sent in response to [`InitiateHandshake`] #[derive(Clone, Debug, Serialize, Deserialize)] pub struct HandshakeResponse { pub identity: Instance, pub version: Version, } #[derive(Clone, Debug, Serialize, Deserialize)] pub struct HandshakeFinalize { pub success: bool, }