pub struct SessionHello {
pub version: u8,
pub session_id: String,
pub challenge: Vec<u8>,
pub host_pubkey: Vec<u8>,
}Expand description
Host → Guest: initiate authenticated session after CONNECT/OK.
Fields§
§version: u8Protocol version the host supports.
session_id: StringSession identifier (UUID v4, generated by host).
challenge: Vec<u8>Random challenge bytes (32 bytes) the guest must sign to prove key possession.
host_pubkey: Vec<u8>Host’s Ed25519 public key (32 bytes) for the guest to verify host frames.
Trait Implementations§
Source§impl Clone for SessionHello
impl Clone for SessionHello
Source§fn clone(&self) -> SessionHello
fn clone(&self) -> SessionHello
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 SessionHello
impl Debug for SessionHello
Source§impl<'de> Deserialize<'de> for SessionHello
impl<'de> Deserialize<'de> for SessionHello
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
Auto Trait Implementations§
impl Freeze for SessionHello
impl RefUnwindSafe for SessionHello
impl Send for SessionHello
impl Sync for SessionHello
impl Unpin for SessionHello
impl UnsafeUnpin for SessionHello
impl UnwindSafe for SessionHello
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