pub struct Hello {
pub versions: Versions,
pub client_nonce: Nonce,
pub capabilities: Vec<String>,
pub community_id: Option<CommunityId>,
pub held_descriptor: Option<DescriptorHash>,
}Expand description
session.hello (§6.2).
Fields§
§versions: VersionsThe client’s supported protocol range.
client_nonce: NonceFresh per hello; echoed in the host’s proof.
capabilities: Vec<String>≤ 32 entries, each ≤ 64 bytes; unknown ones are ignored by the host.
community_id: Option<CommunityId>Unbound only: the community the client intends to join. Required, may be null.
held_descriptor: Option<DescriptorHash>The hash of the verified descriptor the client holds for the bound or requested community. A host whose current descriptor has this hash leaves the pair out of the welcome. Absent when the client holds none.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Hello
impl<'de> Deserialize<'de> for Hello
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 Hello
impl StructuralPartialEq for Hello
Auto Trait Implementations§
impl Freeze for Hello
impl RefUnwindSafe for Hello
impl Send for Hello
impl Sync for Hello
impl Unpin for Hello
impl UnsafeUnpin for Hello
impl UnwindSafe for Hello
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