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.
Auto Trait Implementations§
impl<'a> RefUnwindSafe for CreateOptions<'a>
impl<'a> Send for CreateOptions<'a>
impl<'a> Sync for CreateOptions<'a>
impl<'a> Unpin for CreateOptions<'a>
impl<'a> UnwindSafe for CreateOptions<'a>
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