pub struct ClientConfigBuilder { /* private fields */ }Expand description
Builder for client configuration.
Implementations§
Source§impl ClientConfigBuilder
impl ClientConfigBuilder
pub fn new() -> Self
pub fn user_name(self, name: impl Into<String>) -> Self
pub fn auto_reconnect(self, enabled: bool) -> Self
pub fn max_reconnect_attempts(self, attempts: u32) -> Self
pub fn build(self) -> ClientConfig
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClientConfigBuilder
impl RefUnwindSafe for ClientConfigBuilder
impl Send for ClientConfigBuilder
impl Sync for ClientConfigBuilder
impl Unpin for ClientConfigBuilder
impl UnwindSafe for ClientConfigBuilder
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