Struct zookeeper_client::ClientBuilder
source · pub struct ClientBuilder { /* private fields */ }
Expand description
Builder for Client with more options than Client::connect.
Implementations§
source§impl ClientBuilder
impl ClientBuilder
sourcepub fn new(session_timeout: Duration) -> ClientBuilder
pub fn new(session_timeout: Duration) -> ClientBuilder
Constructs a builder with given session timeout.
sourcepub fn with_readonly(&mut self, readonly: bool) -> &mut ClientBuilder
pub fn with_readonly(&mut self, readonly: bool) -> &mut ClientBuilder
Specifies whether readonly server is allowed.
Trait Implementations§
source§impl Clone for ClientBuilder
impl Clone for ClientBuilder
source§fn clone(&self) -> ClientBuilder
fn clone(&self) -> ClientBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more