pub struct SessionBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct Session
objects.
Implementations§
Source§impl SessionBuilder
impl SessionBuilder
pub fn accept_language(self, accept_language: impl Into<GString>) -> Self
pub fn accept_language_auto(self, accept_language_auto: bool) -> Self
pub fn idle_timeout(self, idle_timeout: u32) -> Self
pub fn local_address(self, local_address: &impl IsA<InetSocketAddress>) -> Self
pub fn max_conns(self, max_conns: i32) -> Self
pub fn max_conns_per_host(self, max_conns_per_host: i32) -> Self
pub fn proxy_resolver(self, proxy_resolver: &impl IsA<ProxyResolver>) -> Self
pub fn remote_connectable( self, remote_connectable: &impl IsA<SocketConnectable>, ) -> Self
pub fn timeout(self, timeout: u32) -> Self
pub fn tls_database(self, tls_database: &impl IsA<TlsDatabase>) -> Self
pub fn tls_interaction(self, tls_interaction: &impl IsA<TlsInteraction>) -> Self
pub fn user_agent(self, user_agent: impl Into<GString>) -> Self
Auto Trait Implementations§
impl Freeze for SessionBuilder
impl RefUnwindSafe for SessionBuilder
impl !Send for SessionBuilder
impl !Sync for SessionBuilder
impl Unpin for SessionBuilder
impl UnwindSafe for SessionBuilder
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