pub struct Config {
pub proto: String,
pub servers: Box<[SocketAddr]>,
pub send_timeout: Option<Duration>,
pub connection_timeout: Duration,
pub auth_token: Option<String>,
pub use_backpressure: bool,
pub channel_buffer_size: usize,
pub socket_path: Option<PathBuf>,
}Fields§
§proto: String§servers: Box<[SocketAddr]>§send_timeout: Option<Duration>§connection_timeout: Duration§auth_token: Option<String>§use_backpressure: bool§channel_buffer_size: usize§socket_path: Option<PathBuf>Implementations§
Source§impl Config
impl Config
pub fn new() -> Self
pub fn with_servers(proto: String, servers: Box<[SocketAddr]>) -> Self
Trait Implementations§
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for 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