Struct quinn_noise::NoiseSession [−][src]
pub struct NoiseSession { /* fields omitted */ }Trait Implementations
fn start_session(
&self,
_: &str,
params: &TransportParameters
) -> Result<NoiseSession, ConnectError>
fn start_session(
&self,
_: &str,
params: &TransportParameters
) -> Result<NoiseSession, ConnectError>Start a client session with this configuration
Start a server session with this configuration
type HandshakeData = ()
type HandshakeData = ()Parameters determined when the handshake begins, e.g. server name and/or application protocol Read more
type ClientConfig = NoiseConfig
type ClientConfig = NoiseConfigType used to hold configuration for client sessions
type ServerConfig = Arc<NoiseConfig>
type ServerConfig = Arc<NoiseConfig>Type used to hold configuration for server sessions
type HandshakeTokenKey = Prk
type HandshakeTokenKey = PrkKey used to generate one-time-use handshake token keys
type HeaderKey = PlaintextHeaderKey
type HeaderKey = PlaintextHeaderKeyType of keys used to protect packet headers
type PacketKey = ChaCha8PacketKey
type PacketKey = ChaCha8PacketKeyType used to represent packet protection keys
Create the initial set of keys given the client’s initial destination ConnectionId
Compute keys for the next key update
Read bytes of handshake data Read more
Writes handshake bytes into the given buffer and optionally returns the negotiated keys Read more
Returns true until the connection is fully established.
Get the peer’s identity, if available
The peer’s QUIC transport parameters Read more
Get data negotiated during the handshake, if available Read more
Get the 0-RTT keys if available (clients only) Read more
If the 0-RTT-encrypted data has been accepted by the peer
Generate the integrity tag for a retry packet
Verify the integrity of a retry packet
Auto Trait Implementations
impl !RefUnwindSafe for NoiseSessionimpl Send for NoiseSessionimpl Sync for NoiseSessionimpl Unpin for NoiseSessionimpl !UnwindSafe for NoiseSession