Struct trillium_rustls::RustlsConfig
source · pub struct RustlsConfig<Config> {
pub rustls_config: RustlsClientConfig,
pub tcp_config: Config,
}
Expand description
Client configuration for RustlsConnector
Fields§
§rustls_config: RustlsClientConfig
configuration for rustls itself
tcp_config: Config
configuration for the inner transport
Implementations§
source§impl<C: Connector> RustlsConfig<C>
impl<C: Connector> RustlsConfig<C>
source§impl<C: Connector> RustlsConfig<C>
impl<C: Connector> RustlsConfig<C>
sourcepub fn with_tcp_config(self, config: C) -> Self
pub fn with_tcp_config(self, config: C) -> Self
replace the tcp config
Trait Implementations§
source§impl<Config: Clone> Clone for RustlsConfig<Config>
impl<Config: Clone> Clone for RustlsConfig<Config>
source§fn clone(&self) -> RustlsConfig<Config>
fn clone(&self) -> RustlsConfig<Config>
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 moresource§impl<C: Connector> Connector for RustlsConfig<C>
impl<C: Connector> Connector for RustlsConfig<C>
type Transport = RustlsClientTransport<<C as Connector>::Transport>
source§fn connect<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 Url,
) -> Pin<Box<dyn Future<Output = Result<Self::Transport>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn connect<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 Url,
) -> Pin<Box<dyn Future<Output = Result<Self::Transport>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Initiate a connection to the provided url Read more
fn spawn<Fut: Future<Output = ()> + Send + 'static>(&self, fut: Fut)
source§impl<Config: Debug> Debug for RustlsConfig<Config>
impl<Config: Debug> Debug for RustlsConfig<Config>
source§impl<Config: Default> Default for RustlsConfig<Config>
impl<Config: Default> Default for RustlsConfig<Config>
source§fn default() -> RustlsConfig<Config>
fn default() -> RustlsConfig<Config>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<Config> Freeze for RustlsConfig<Config>where
Config: Freeze,
impl<Config> !RefUnwindSafe for RustlsConfig<Config>
impl<Config> Send for RustlsConfig<Config>where
Config: Send,
impl<Config> Sync for RustlsConfig<Config>where
Config: Sync,
impl<Config> Unpin for RustlsConfig<Config>where
Config: Unpin,
impl<Config> !UnwindSafe for RustlsConfig<Config>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)