[−][src]Struct joyent_tokio_zookeeper::ZooKeeperBuilder
Builder that allows customizing options for ZooKeeper connections.
Implementations
impl ZooKeeperBuilder
[src]
pub fn connect(
self,
addr: &SocketAddr
) -> impl Future<Item = (ZooKeeper, impl Stream<Item = WatchedEvent, Error = ()>), Error = Error>
[src]
self,
addr: &SocketAddr
) -> impl Future<Item = (ZooKeeper, impl Stream<Item = WatchedEvent, Error = ()>), Error = Error>
Connect to a ZooKeeper server instance at the given address.
Session establishment is asynchronous. This constructor will initiate connection to the
server and return immediately - potentially (usually) before the session is fully
established. When the session is established, a ZooKeeper
instance is returned, along
with a "watcher" that will provide notifications of any changes in state.
If the connection to the server fails, the client will automatically try to re-connect. Only if re-connection fails is an error returned to the client. Requests that are in-flight during a disconnect may fail and have to be retried.
pub fn set_timeout(&mut self, t: Duration)
[src]
Set the ZooKeeper session expiry timeout.
The default timeout is dictated by the server.
pub fn set_logger(&mut self, l: Logger)
[src]
Set the logger that should be used internally in the ZooKeeper client.
By default, all logging is disabled. See also the slog
documentation.
Trait Implementations
impl Clone for ZooKeeperBuilder
[src]
fn clone(&self) -> ZooKeeperBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ZooKeeperBuilder
[src]
impl Default for ZooKeeperBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for ZooKeeperBuilder
impl Send for ZooKeeperBuilder
impl Sync for ZooKeeperBuilder
impl Unpin for ZooKeeperBuilder
impl UnwindSafe for ZooKeeperBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,