pub struct HandshakeRequest {
pub device_id: PublicKey,
pub public_key: PublicKey,
pub display_name: Option<String>,
pub protocol_version: u32,
pub challenge: Vec<u8>,
pub listen_addresses: Vec<Address>,
}Expand description
Handshake request sent when establishing a peer connection.
Fields§
§device_id: PublicKeyUnique device identifier
public_key: PublicKeyEd25519 public key of the sender
display_name: Option<String>Optional human-readable display name
protocol_version: u32Protocol version number
challenge: Vec<u8>Random challenge bytes for signature verification
listen_addresses: Vec<Address>Addresses where this peer can be reached for sync
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<'de> Deserialize<'de> for HandshakeRequest
impl<'de> Deserialize<'de> for HandshakeRequest
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
Source§impl PartialEq for HandshakeRequest
impl PartialEq for HandshakeRequest
Source§impl Serialize for HandshakeRequest
impl Serialize 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more