pub struct ClientHello {
pub name: String,
pub device_info: Option<DeviceInfo>,
pub supported_roles: Vec<String>,
pub player_support: Option<PlayerSupport>,
pub supported_pair_methods: SupportedPairMethods,
pub unpaired_access: UnpairedAccess,
}Expand description
client/hello: the client’s roles and capabilities.
Sent once per connection, after ServerHello. A role listed in supported_roles that
defines a support object must carry it; player@v1 requires
player_support.
Fields§
§name: StringFriendly name of the client, plain text of at most 64 bytes in UTF-8.
device_info: Option<DeviceInfo>Optional description of the device.
supported_roles: Vec<String>Versioned role identifiers the client supports, for example player@v1.
player_support: Option<PlayerSupport>Player capabilities; present exactly when player@v1 is listed.
supported_pair_methods: SupportedPairMethodsPairing methods the client currently offers.
unpaired_access: UnpairedAccessWhether the client currently admits unpaired access.
Trait Implementations§
Source§impl Clone for ClientHello
impl Clone for ClientHello
Source§impl Debug for ClientHello
impl Debug for ClientHello
Source§impl<'de> Deserialize<'de> for ClientHello
impl<'de> Deserialize<'de> for ClientHello
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 ClientHello
Source§impl PartialEq for ClientHello
impl PartialEq for ClientHello
Source§impl Serialize for ClientHello
impl Serialize for ClientHello
impl StructuralPartialEq for ClientHello
Auto Trait Implementations§
impl Forget for ClientHello
impl Freeze for ClientHello
impl Move for ClientHello
impl RefUnwindSafe for ClientHello
impl Send for ClientHello
impl Sync for ClientHello
impl Unpin for ClientHello
impl UnsafeUnpin for ClientHello
impl UnwindSafe for ClientHello
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