pub struct ServerHello {
pub name: String,
pub languages: Option<Vec<String>>,
}Expand description
server/hello: the server’s identity, the first message after the handshake.
Fields§
§name: StringFriendly name of the server, plain text of at most 64 bytes in UTF-8.
languages: Option<Vec<String>>BCP 47 language tags the operator understands, most preferred first.
Trait Implementations§
Source§impl Clone for ServerHello
impl Clone for ServerHello
Source§impl Debug for ServerHello
impl Debug for ServerHello
Source§impl<'de> Deserialize<'de> for ServerHello
impl<'de> Deserialize<'de> for ServerHello
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 ServerHello
Source§impl PartialEq for ServerHello
impl PartialEq for ServerHello
Source§impl Serialize for ServerHello
impl Serialize for ServerHello
impl StructuralPartialEq for ServerHello
Auto Trait Implementations§
impl Forget for ServerHello
impl Freeze for ServerHello
impl Move for ServerHello
impl RefUnwindSafe for ServerHello
impl Send for ServerHello
impl Sync for ServerHello
impl Unpin for ServerHello
impl UnsafeUnpin for ServerHello
impl UnwindSafe for ServerHello
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