pub struct HandshakeRequest {
pub node_id: NodeId,
pub wire_version: WireVersion,
pub app_version: Option<String>,
pub adapter: String,
}Expand description
Information sent by a node when initiating a version handshake.
Both nodes exchange a HandshakeRequest during connection setup.
The receiving node compares the request against its own configuration
and returns a HandshakeResponse.
Fields§
§node_id: NodeIdThe node’s identity.
wire_version: WireVersionThe wire protocol version this node speaks.
app_version: Option<String>The application version, if configured. Informational only — does not affect compatibility.
adapter: StringThe actor framework adapter (e.g. “ractor”, “kameo”, “coerce”).
Implementations§
Source§impl HandshakeRequest
impl HandshakeRequest
Sourcepub fn from_runtime(
node_id: NodeId,
app_version: Option<String>,
adapter: impl Into<String>,
) -> Self
pub fn from_runtime( node_id: NodeId, app_version: Option<String>, adapter: impl Into<String>, ) -> Self
Build a HandshakeRequest from runtime configuration.
Uses DACTOR_WIRE_VERSION as
the wire version. This is the canonical way for adapters to construct
a handshake request — avoids duplicating version/field logic across
adapter crates.
Trait Implementations§
Source§impl Clone for HandshakeRequest
impl Clone for HandshakeRequest
Source§fn clone(&self) -> HandshakeRequest
fn clone(&self) -> HandshakeRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 HandshakeRequest
impl Debug for HandshakeRequest
Source§impl PartialEq for HandshakeRequest
impl PartialEq for HandshakeRequest
impl Eq for HandshakeRequest
impl StructuralPartialEq for HandshakeRequest
Auto Trait Implementations§
impl Freeze for HandshakeRequest
impl RefUnwindSafe for HandshakeRequest
impl Send for HandshakeRequest
impl Sync for HandshakeRequest
impl Unpin for HandshakeRequest
impl UnsafeUnpin for HandshakeRequest
impl UnwindSafe for HandshakeRequest
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