pub struct RpcConfig {
pub url: String,
pub username: String,
pub password: String,
pub timeout_secs: u64,
pub pool_max_idle_per_host: usize,
pub pool_idle_timeout_secs: u64,
pub tcp_keepalive_secs: u64,
}Fields§
§url: String§username: String§password: String§timeout_secs: u64§pool_max_idle_per_host: usize§pool_idle_timeout_secs: u64§tcp_keepalive_secs: u64Implementations§
Source§impl RpcConfig
impl RpcConfig
pub fn new(url: String, username: String, password: String) -> Self
pub fn with_timeout(self, timeout_secs: u64) -> Self
pub fn with_pool_max_idle_per_host(self, pool_max_idle_per_host: usize) -> Self
pub fn with_pool_idle_timeout(self, pool_idle_timeout_secs: u64) -> Self
pub fn with_tcp_keepalive(self, tcp_keepalive_secs: u64) -> Self
pub fn with_connection_pool( self, pool_max_idle_per_host: usize, pool_idle_timeout_secs: u64, tcp_keepalive_secs: u64, ) -> Self
pub fn timeout(&self) -> Duration
pub fn pool_idle_timeout(&self) -> Duration
pub fn tcp_keepalive(&self) -> Duration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RpcConfig
impl RefUnwindSafe for RpcConfig
impl Send for RpcConfig
impl Sync for RpcConfig
impl Unpin for RpcConfig
impl UnsafeUnpin for RpcConfig
impl UnwindSafe for RpcConfig
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