pub struct Config { /* private fields */ }Available on crate feature
tls only.Implementations§
Trait Implementations§
Source§impl<C> InboundConnectionUpgrade<C> for Config
impl<C> InboundConnectionUpgrade<C> for Config
Source§type Output = (PeerId, TlsStream<C>)
type Output = (PeerId, TlsStream<C>)
Output after the upgrade has been successfully negotiated and the handshake performed.
Source§type Error = UpgradeError
type Error = UpgradeError
Possible error during the handshake.
Source§type Future = Pin<Box<dyn Future<Output = Result<<Config as InboundConnectionUpgrade<C>>::Output, <Config as InboundConnectionUpgrade<C>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<Config as InboundConnectionUpgrade<C>>::Output, <Config as InboundConnectionUpgrade<C>>::Error>> + Send>>
Future that performs the handshake with the remote.
Source§fn upgrade_inbound(
self,
socket: C,
_: <Config as UpgradeInfo>::Info,
) -> <Config as InboundConnectionUpgrade<C>>::Future
fn upgrade_inbound( self, socket: C, _: <Config as UpgradeInfo>::Info, ) -> <Config as InboundConnectionUpgrade<C>>::Future
After we have determined that the remote supports one of the protocols we support, this
method is called to start the handshake. Read more
Source§impl<C> OutboundConnectionUpgrade<C> for Config
impl<C> OutboundConnectionUpgrade<C> for Config
Source§type Output = (PeerId, TlsStream<C>)
type Output = (PeerId, TlsStream<C>)
Output after the upgrade has been successfully negotiated and the handshake performed.
Source§type Error = UpgradeError
type Error = UpgradeError
Possible error during the handshake.
Source§type Future = Pin<Box<dyn Future<Output = Result<<Config as OutboundConnectionUpgrade<C>>::Output, <Config as OutboundConnectionUpgrade<C>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<Config as OutboundConnectionUpgrade<C>>::Output, <Config as OutboundConnectionUpgrade<C>>::Error>> + Send>>
Future that performs the handshake with the remote.
Source§fn upgrade_outbound(
self,
socket: C,
_: <Config as UpgradeInfo>::Info,
) -> <Config as OutboundConnectionUpgrade<C>>::Future
fn upgrade_outbound( self, socket: C, _: <Config as UpgradeInfo>::Info, ) -> <Config as OutboundConnectionUpgrade<C>>::Future
After we have determined that the remote supports one of the protocols we support, this
method is called to start the handshake. Read more
Source§impl UpgradeInfo for Config
impl UpgradeInfo for Config
Source§fn protocol_info(&self) -> <Config as UpgradeInfo>::InfoIter
fn protocol_info(&self) -> <Config as UpgradeInfo>::InfoIter
Returns the list of protocols that are supported. Used during the negotiation process.
Auto Trait Implementations§
impl !RefUnwindSafe for Config
impl !UnwindSafe for Config
impl Forget for Config
impl Freeze for Configwhere
*const ArcInner<CryptoProvider> is !null: Freeze,
PhantomData<ArcInner<CryptoProvider>>: Freeze,
*const ArcInner<dyn StoresServerSessions> is !null: Freeze,
PhantomData<ArcInner<dyn StoresServerSessions>>: Freeze,
*const ArcInner<dyn ProducesTickets> is !null: Freeze,
PhantomData<ArcInner<dyn ProducesTickets>>: Freeze,
*const ArcInner<dyn ResolvesServerCert> is !null: Freeze,
PhantomData<ArcInner<dyn ResolvesServerCert>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<Vec<u8>>: Freeze,
&'static SupportedProtocolVersion: Freeze,
*const ArcInner<dyn ClientCertVerifier> is !null: Freeze,
PhantomData<ArcInner<dyn ClientCertVerifier>>: Freeze,
*const ArcInner<dyn KeyLog> is !null: Freeze,
PhantomData<ArcInner<dyn KeyLog>>: Freeze,
*const ArcInner<dyn TimeProvider> is !null: Freeze,
PhantomData<ArcInner<dyn TimeProvider>>: Freeze,
PhantomData<&'static dyn CertCompressor>: Freeze,
*const ArcInner<CompressionCache> is !null: Freeze,
PhantomData<ArcInner<CompressionCache>>: Freeze,
PhantomData<&'static dyn CertDecompressor>: Freeze,
*const ArcInner<dyn ClientSessionStore> is !null: Freeze,
PhantomData<ArcInner<dyn ClientSessionStore>>: Freeze,
*const ArcInner<dyn ResolvesClientCert> is !null: Freeze,
PhantomData<ArcInner<dyn ResolvesClientCert>>: Freeze,
*const ArcInner<dyn ServerCertVerifier> is !null: Freeze,
PhantomData<ArcInner<dyn ServerCertVerifier>>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<NonEmpty>: Freeze,
PhantomData<HpkeSymmetricCipherSuite>: Freeze,
&'static str: Freeze,
PhantomData<EchConfigExtension>: Freeze,
PhantomData<MaybeEmpty>: Freeze,
&'static dyn Hpke: Freeze,
impl Move for Config
impl Send for Configwhere
Arc<CryptoProvider>: Send,
Arc<dyn StoresServerSessions>: Send,
Arc<dyn ProducesTickets>: Send,
Arc<dyn ResolvesServerCert>: Send,
RawVecInner: Send,
&'static SupportedProtocolVersion: Send,
Arc<dyn ClientCertVerifier>: Send,
Arc<dyn KeyLog>: Send,
Arc<dyn TimeProvider>: Send,
&'static dyn CertCompressor: Send,
Arc<CompressionCache>: Send,
&'static dyn CertDecompressor: Send,
Arc<dyn ClientSessionStore>: Send,
Arc<dyn ResolvesClientCert>: Send,
Arc<dyn ServerCertVerifier>: Send,
&'static str: Send,
&'static [u8]: Send,
&'static dyn Hpke: Send,
impl Sync for Configwhere
Arc<CryptoProvider>: Sync,
Arc<dyn StoresServerSessions>: Sync,
Arc<dyn ProducesTickets>: Sync,
Arc<dyn ResolvesServerCert>: Sync,
RawVecInner: Sync,
Arc<dyn ClientCertVerifier>: Sync,
Arc<dyn KeyLog>: Sync,
Arc<dyn TimeProvider>: Sync,
Arc<CompressionCache>: Sync,
Arc<dyn ClientSessionStore>: Sync,
Arc<dyn ResolvesClientCert>: Sync,
Arc<dyn ServerCertVerifier>: Sync,
impl Unpin for Configwhere
Arc<CryptoProvider>: Unpin,
Arc<dyn StoresServerSessions>: Unpin,
Arc<dyn ProducesTickets>: Unpin,
Arc<dyn ResolvesServerCert>: Unpin,
*const u8 is !null: Unpin,
&'static SupportedProtocolVersion: Unpin,
Arc<dyn ClientCertVerifier>: Unpin,
Arc<dyn KeyLog>: Unpin,
Arc<dyn TimeProvider>: Unpin,
&'static dyn CertCompressor: Unpin,
Arc<CompressionCache>: Unpin,
&'static dyn CertDecompressor: Unpin,
Arc<dyn ClientSessionStore>: Unpin,
Arc<dyn ResolvesClientCert>: Unpin,
Arc<dyn ServerCertVerifier>: Unpin,
&'static str: Unpin,
&'static [u8]: Unpin,
&'static dyn Hpke: Unpin,
impl UnsafeUnpin for Configwhere
*const ArcInner<CryptoProvider> is !null: UnsafeUnpin,
PhantomData<ArcInner<CryptoProvider>>: UnsafeUnpin,
*const ArcInner<dyn StoresServerSessions> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn StoresServerSessions>>: UnsafeUnpin,
*const ArcInner<dyn ProducesTickets> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ProducesTickets>>: UnsafeUnpin,
*const ArcInner<dyn ResolvesServerCert> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ResolvesServerCert>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<Vec<u8>>: UnsafeUnpin,
&'static SupportedProtocolVersion: UnsafeUnpin,
*const ArcInner<dyn ClientCertVerifier> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ClientCertVerifier>>: UnsafeUnpin,
*const ArcInner<dyn KeyLog> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn KeyLog>>: UnsafeUnpin,
*const ArcInner<dyn TimeProvider> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn TimeProvider>>: UnsafeUnpin,
PhantomData<&'static dyn CertCompressor>: UnsafeUnpin,
*const ArcInner<CompressionCache> is !null: UnsafeUnpin,
PhantomData<ArcInner<CompressionCache>>: UnsafeUnpin,
PhantomData<&'static dyn CertDecompressor>: UnsafeUnpin,
*const ArcInner<dyn ClientSessionStore> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ClientSessionStore>>: UnsafeUnpin,
*const ArcInner<dyn ResolvesClientCert> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ResolvesClientCert>>: UnsafeUnpin,
*const ArcInner<dyn ServerCertVerifier> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ServerCertVerifier>>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<NonEmpty>: UnsafeUnpin,
PhantomData<HpkeSymmetricCipherSuite>: UnsafeUnpin,
&'static str: UnsafeUnpin,
PhantomData<EchConfigExtension>: UnsafeUnpin,
PhantomData<MaybeEmpty>: UnsafeUnpin,
&'static dyn Hpke: UnsafeUnpin,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> UpgradeInfoSend for Twhere
T: UpgradeInfo + Send + 'static,
<T as UpgradeInfo>::Info: Send + 'static,
<<T as UpgradeInfo>::InfoIter as IntoIterator>::IntoIter: Send + 'static,
impl<T> UpgradeInfoSend for Twhere
T: UpgradeInfo + Send + 'static,
<T as UpgradeInfo>::Info: Send + 'static,
<<T as UpgradeInfo>::InfoIter as IntoIterator>::IntoIter: Send + 'static,
§type Info = <T as UpgradeInfo>::Info
type Info = <T as UpgradeInfo>::Info
Equivalent to
UpgradeInfo::Info.§type InfoIter = <<T as UpgradeInfo>::InfoIter as IntoIterator>::IntoIter
type InfoIter = <<T as UpgradeInfo>::InfoIter as IntoIterator>::IntoIter
Equivalent to
UpgradeInfo::InfoIter.§fn protocol_info(&self) -> <T as UpgradeInfoSend>::InfoIter
fn protocol_info(&self) -> <T as UpgradeInfoSend>::InfoIter
Equivalent to
UpgradeInfo::protocol_info.