Struct quinn::crypto::rustls::TlsSession [−][src]
A rustls TLS session
Trait Implementations
impl ClientConfig<TlsSession> for Arc<ClientConfig>
[src]
pub fn new() -> Arc<ClientConfig>
[src]
pub fn start_session(
&self,
server_name: &str,
params: &TransportParameters
) -> Result<TlsSession, ConnectError>
[src]
&self,
server_name: &str,
params: &TransportParameters
) -> Result<TlsSession, ConnectError>
impl Debug for TlsSession
[src]
impl Deref for TlsSession
[src]
type Target = dyn Session + 'static
The resulting type after dereferencing.
pub fn deref(&self) -> &<TlsSession as Deref>::Target
[src]
impl DerefMut for TlsSession
[src]
impl ServerConfig<TlsSession> for Arc<ServerConfig>
[src]
pub fn new() -> Arc<ServerConfig>
[src]
pub fn start_session(&self, params: &TransportParameters) -> TlsSession
[src]
impl Session for TlsSession
[src]
type HandshakeData = HandshakeData
Parameters determined when the handshake begins, e.g. server name and/or application protocol Read more
type Identity = CertificateChain
Cryptographic identity of the peer
type ClientConfig = Arc<ClientConfig>
Type used to hold configuration for client sessions
type HmacKey = Key
Type used to sign various values
type HandshakeTokenKey = Prk
Key used to generate one-time-use handshake token keys
type PacketKey = PacketKey
Type used to represent packet protection keys
type HeaderKey = HeaderProtectionKey
Type of keys used to protect packet headers
type ServerConfig = Arc<ServerConfig>
Type used to hold configuration for server sessions
pub fn initial_keys(dst_cid: &ConnectionId, side: Side) -> Keys<TlsSession>
[src]
pub fn handshake_data(&self) -> Option<HandshakeData>
[src]
pub fn peer_identity(&self) -> Option<CertificateChain>
[src]
pub fn early_crypto(
&self
) -> Option<(<TlsSession as Session>::HeaderKey, <TlsSession as Session>::PacketKey)>
[src]
&self
) -> Option<(<TlsSession as Session>::HeaderKey, <TlsSession as Session>::PacketKey)>
pub fn early_data_accepted(&self) -> Option<bool>
[src]
pub fn is_handshaking(&self) -> bool
[src]
pub fn read_handshake(&mut self, buf: &[u8]) -> Result<bool, Error>
[src]
pub fn transport_parameters(&self) -> Result<Option<TransportParameters>, Error>
[src]
pub fn write_handshake(
&mut self,
buf: &mut Vec<u8, Global>
) -> Option<Keys<TlsSession>>
[src]
&mut self,
buf: &mut Vec<u8, Global>
) -> Option<Keys<TlsSession>>
pub fn next_1rtt_keys(&mut self) -> KeyPair<<TlsSession as Session>::PacketKey>
[src]
pub fn retry_tag(orig_dst_cid: &ConnectionId, packet: &[u8]) -> [u8; 16]
[src]
pub fn is_valid_retry(
orig_dst_cid: &ConnectionId,
header: &[u8],
payload: &[u8]
) -> bool
[src]
orig_dst_cid: &ConnectionId,
header: &[u8],
payload: &[u8]
) -> bool
pub fn export_keying_material(
&self,
output: &mut [u8],
label: &[u8],
context: &[u8]
) -> Result<(), ExportKeyingMaterialError>
[src]
&self,
output: &mut [u8],
label: &[u8],
context: &[u8]
) -> Result<(), ExportKeyingMaterialError>
Auto Trait Implementations
impl !RefUnwindSafe for TlsSession
impl Send for TlsSession
impl Sync for TlsSession
impl Unpin for TlsSession
impl !UnwindSafe for TlsSession
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,