[−][src]Enum zookeeper_async::KeeperState
Enumeration of states the client may be at a Watcher Event. It represents the state of the server at the time the event was generated.
Variants
The client is in the disconnected state - it is not connected to any server in the ensemble.
The client is in the connected state - it is connected to a server in the ensemble (one of the servers specified in the host connection parameter during ZooKeeper client creation).
Authentication has failed -- connection requires a new ZooKeeper
instance.
The client is connected to a read-only server, that is the server which is not currently connected to the majority. The only operations allowed after receiving this state is read operations. This state is generated for read-only clients only since read/write clients aren't allowed to connect to read-only servers.
Used to notify clients that they are SASL-authenticated, so that they can perform ZooKeeper actions with their SASL-authorized permissions.
The serving cluster has expired this session. The ZooKeeper client connection (the session)
is no longer valid. You must create a new client connection (instantiate a new ZooKeeper
instance) if you with to access the ensemble.
Trait Implementations
impl Clone for KeeperState
[src]
pub fn clone(&self) -> KeeperState
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for KeeperState
[src]
impl Debug for KeeperState
[src]
impl Display for KeeperState
[src]
impl Eq for KeeperState
[src]
impl Hash for KeeperState
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for KeeperState
[src]
pub fn cmp(&self, other: &KeeperState) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<KeeperState> for KeeperState
[src]
pub fn eq(&self, other: &KeeperState) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<KeeperState> for KeeperState
[src]
pub fn partial_cmp(&self, other: &KeeperState) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for KeeperState
[src]
impl StructuralPartialEq for KeeperState
[src]
impl TryFrom<i32> for KeeperState
[src]
type Error = TryFromPrimitiveError<Self>
The type returned in the event of a conversion error.
pub fn try_from(number: i32) -> Result<Self, TryFromPrimitiveError<Self>>
[src]
impl TryFromPrimitive for KeeperState
[src]
type Primitive = i32
pub const NAME: &'static str
[src]
pub fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
[src]
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations
impl RefUnwindSafe for KeeperState
[src]
impl Send for KeeperState
[src]
impl Sync for KeeperState
[src]
impl Unpin for KeeperState
[src]
impl UnwindSafe for KeeperState
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
pub 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>,