pub struct ClientBuilder { /* private fields */ }
Implementations§
Source§impl ClientBuilder
impl ClientBuilder
Sourcepub fn set_agent_name(&mut self, name: &str)
pub fn set_agent_name(&mut self, name: &str)
Sets the agent name.
Sourcepub fn set_exact_agent_str(&mut self, agent_str: String)
pub fn set_exact_agent_str(&mut self, agent_str: String)
Sets the full agent string without supplementary info.
Sourcepub fn set_connect_timeout(&mut self, tout: Duration)
pub fn set_connect_timeout(&mut self, tout: Duration)
Sets the connection timeout.
Sourcepub async fn connect_tcp_authed<A: AuthConfig>(
self,
socket_addr: SocketAddr,
auth: A,
) -> Result<ConnectionHandle, Error>
pub async fn connect_tcp_authed<A: AuthConfig>( self, socket_addr: SocketAddr, auth: A, ) -> Result<ConnectionHandle, Error>
Connects to a server using a Tokio TCP stream and a provided auth config.
Sourcepub async fn connect_tcp(
self,
socket_addr: SocketAddr,
) -> Result<ConnectionHandle, Error>
pub async fn connect_tcp( self, socket_addr: SocketAddr, ) -> Result<ConnectionHandle, Error>
Connects to a server using a Tokio TCP stream without an auth config.
Auto Trait Implementations§
impl Freeze for ClientBuilder
impl RefUnwindSafe for ClientBuilder
impl Send for ClientBuilder
impl Sync for ClientBuilder
impl Unpin for ClientBuilder
impl UnwindSafe for ClientBuilder
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