pub struct ServerInit {
pub server_id: String,
pub version: u32,
}Expand description
server/init: the server’s answer to ClientInit.
The server sends it immediately, followed by the first noise/handshake message, without
waiting for anything in between.
Fields§
§server_id: StringStatic public key as 43 base64url characters without padding.
version: u32Core message format version, PROTOCOL_VERSION.
Trait Implementations§
Source§impl Clone for ServerInit
impl Clone for ServerInit
Source§impl Debug for ServerInit
impl Debug for ServerInit
Source§impl<'de> Deserialize<'de> for ServerInit
impl<'de> Deserialize<'de> for ServerInit
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
impl Eq for ServerInit
Source§impl PartialEq for ServerInit
impl PartialEq for ServerInit
Source§impl Serialize for ServerInit
impl Serialize for ServerInit
impl StructuralPartialEq for ServerInit
Auto Trait Implementations§
impl Forget for ServerInit
impl Freeze for ServerInit
impl Move for ServerInit
impl RefUnwindSafe for ServerInit
impl Send for ServerInit
impl Sync for ServerInit
impl Unpin for ServerInit
impl UnsafeUnpin for ServerInit
impl UnwindSafe for ServerInit
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