pub struct HandshakeData {
pub protocol: Option<Vec<u8>>,
pub server_name: Option<String>,
}
Expand description
Information available from quinn_proto::crypto::Session::handshake_data once the handshake has completed.
Fields§
§protocol: Option<Vec<u8>>
The negotiated application protocol, if ALPN is in use
Guaranteed to be set if a nonempty list of protocols was specified for this connection.
server_name: Option<String>
The server name specified by the client, if any
Always None
for outgoing connections
Trait Implementations§
Source§impl Clone for HandshakeData
impl Clone for HandshakeData
Source§fn clone(&self) -> HandshakeData
fn clone(&self) -> HandshakeData
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for HandshakeData
impl RefUnwindSafe for HandshakeData
impl Send for HandshakeData
impl Sync for HandshakeData
impl Unpin for HandshakeData
impl UnwindSafe for HandshakeData
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