Enum 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 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 AuthenticationData = AuthenticationData
Data conveyed by the peer during the handshake, including cryptographic identity
type ClientConfig = Arc<ClientConfig>
Type used to hold configuration for client sessions
type HmacKey = Key
Type used to sign various values
type Keys = Crypto
Type used to represent packet protection keys
type ServerConfig = Arc<ServerConfig>
Type used to hold configuration for server sessions
pub fn authentication_data(&self) -> AuthenticationData
[src]
pub fn early_crypto(&self) -> Option<<TlsSession as Session>::Keys>
[src]
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<(), Error>
[src]
pub fn transport_parameters(&self) -> Result<Option<TransportParameters>, Error>
[src]
pub fn write_handshake(
&mut self,
buf: &mut Vec<u8, Global>
) -> Option<<TlsSession as Session>::Keys>
[src]
&mut self,
buf: &mut Vec<u8, Global>
) -> Option<<TlsSession as Session>::Keys>
pub fn update_keys(
&self,
keys: &<TlsSession as Session>::Keys
) -> <TlsSession as Session>::Keys
[src]
&self,
keys: &<TlsSession as Session>::Keys
) -> <TlsSession as Session>::Keys
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
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>,