[][src]Enum tokio_zookeeper::CreateMode

#[repr(i32)]
pub enum CreateMode { Persistent, Ephemeral, PersistentSequential, EphemeralSequential, Container, }

CreateMode value determines how the znode is created on ZooKeeper.

Variants

The znode will not be automatically deleted upon client's disconnect.

The znode will be deleted upon the client's disconnect.

The name of the znode will be appended with a monotonically increasing number. The actual path name of a sequential node will be the given path plus a suffix "i" where i is the current sequential number of the node. The sequence number is always fixed length of 10 digits, 0 padded. Once such a node is created, the sequential number will be incremented by one.

The znode will be deleted upon the client's disconnect, and its name will be appended with a monotonically increasing number.

Container nodes are special purpose nodes useful for recipes such as leader, lock, etc. When the last child of a container is deleted, the container becomes a candidate to be deleted by the server at some point in the future. Given this property, you should be prepared to get ZkError::NoNode when creating children inside of this container node.

Trait Implementations

impl Clone for CreateMode
[src]

Performs copy-assignment from source. Read more

impl Copy for CreateMode
[src]

impl PartialEq<CreateMode> for CreateMode
[src]

This method tests for !=.

impl Debug for CreateMode
[src]

Auto Trait Implementations

impl Send for CreateMode

impl Sync for CreateMode

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]