#[repr(C)]pub struct Handshake {
pub magic: u32,
pub version: u32,
}
Expand description
First message that must be sent by client after connection to treasury server.
Fields§
§magic: u32
Magic value that must be equal to MAGIC
. Otherwise server SHOULD drop the connection.
version: u32
Major version of the crate used by client. If versions used by client and server mismatch, then server SHOULD drop the connection.
Auto Trait Implementations§
impl Freeze for Handshake
impl RefUnwindSafe for Handshake
impl Send for Handshake
impl Sync for Handshake
impl Unpin for Handshake
impl UnwindSafe for Handshake
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