Struct zookeeper_client::CreateOptions
source · pub struct CreateOptions<'a> { /* private fields */ }
Expand description
Options for node creation.
Implementations§
source§impl<'a> CreateOptions<'a>
impl<'a> CreateOptions<'a>
sourcepub fn new(mode: CreateMode, acls: &'a [Acl]) -> CreateOptions<'a>
pub fn new(mode: CreateMode, acls: &'a [Acl]) -> CreateOptions<'a>
Constructs options with specified create mode and acls.
sourcepub fn with_ttl(&'a mut self, ttl: Duration) -> &'a mut Self
pub fn with_ttl(&'a mut self, ttl: Duration) -> &'a mut Self
Specifies ttl for persistent node.