pub enum CreateMode {
Persistent,
PersistentSequential,
Ephemeral,
EphemeralSequential,
Container,
}
Expand description
CreateMode specifies ZooKeeper znode type. It covers all znode types with help from CreateOptions::with_ttl.
Variants§
Implementations§
Source§impl CreateMode
impl CreateMode
Sourcepub const fn with_acls(self, acls: Acls<'_>) -> CreateOptions<'_>
pub const fn with_acls(self, acls: Acls<'_>) -> CreateOptions<'_>
Constructs CreateOptions with this mode and given acls.
Trait Implementations§
Source§impl Clone for CreateMode
impl Clone for CreateMode
Source§fn clone(&self) -> CreateMode
fn clone(&self) -> CreateMode
Returns a duplicate 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 moreSource§impl Debug for CreateMode
impl Debug for CreateMode
Source§impl PartialEq for CreateMode
impl PartialEq for CreateMode
impl Copy for CreateMode
impl Eq for CreateMode
impl StructuralPartialEq for CreateMode
Auto Trait Implementations§
impl Freeze for CreateMode
impl RefUnwindSafe for CreateMode
impl Send for CreateMode
impl Sync for CreateMode
impl Unpin for CreateMode
impl UnwindSafe for CreateMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more