Struct zookeeper_client::LockOptions
source · pub struct LockOptions<'a> { /* private fields */ }
Expand description
Options to cover Acls for lock path and CreateOptions for ancestor nodes if they don’t exist.
Implementations§
source§impl<'a> LockOptions<'a>
impl<'a> LockOptions<'a>
pub fn new(acls: Acls<'a>) -> Self
sourcepub fn with_ancestor_options(
self,
options: CreateOptions<'a>
) -> Result<Self, Error>
pub fn with_ancestor_options( self, options: CreateOptions<'a> ) -> Result<Self, Error>
Creates ancestor nodes if not exist using given options.
Notable errors
- Error::BadArguments if CreateMode is ephemeral or sequential.
- Error::InvalidAcl if acl is invalid or empty.
Trait Implementations§
source§impl<'a> Clone for LockOptions<'a>
impl<'a> Clone for LockOptions<'a>
source§fn clone(&self) -> LockOptions<'a>
fn clone(&self) -> LockOptions<'a>
Returns a copy 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<'a> Debug for LockOptions<'a>
impl<'a> Debug for LockOptions<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for LockOptions<'a>
impl<'a> Send for LockOptions<'a>
impl<'a> Sync for LockOptions<'a>
impl<'a> Unpin for LockOptions<'a>
impl<'a> UnwindSafe for LockOptions<'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