Struct zookeeper_client::OwnedLockClient
source · pub struct OwnedLockClient { /* private fields */ }
Expand description
Owned version of LockClient.
Implementations§
source§impl OwnedLockClient
impl OwnedLockClient
sourcepub fn lock_path(&self) -> &str
pub fn lock_path(&self) -> &str
Same as LockClient::lock_path.
sourcepub fn create<'a: 'f, 'b: 'f, 'f>(
&'a self,
path: &'b str,
data: &[u8],
options: &CreateOptions<'_>
) -> impl Future<Output = Result<(Stat, CreateSequence), Error>> + Send + 'f
pub fn create<'a: 'f, 'b: 'f, 'f>( &'a self, path: &'b str, data: &[u8], options: &CreateOptions<'_> ) -> impl Future<Output = Result<(Stat, CreateSequence), Error>> + Send + 'f
Same as LockClient::create.
sourcepub fn set_data(
&self,
path: &str,
data: &[u8],
expected_version: Option<i32>
) -> impl Future<Output = Result<Stat, Error>> + Send + '_
pub fn set_data( &self, path: &str, data: &[u8], expected_version: Option<i32> ) -> impl Future<Output = Result<Stat, Error>> + Send + '_
Same as LockClient::set_data.
sourcepub fn delete(
&self,
path: &str,
expected_version: Option<i32>
) -> impl Future<Output = Result<(), Error>> + Send + '_
pub fn delete( &self, path: &str, expected_version: Option<i32> ) -> impl Future<Output = Result<(), Error>> + Send + '_
Same as LockClient::delete.
sourcepub fn new_check_writer(&self) -> CheckWriter<'_>
pub fn new_check_writer(&self) -> CheckWriter<'_>
Same as LockClient::new_check_writer.
Trait Implementations§
source§impl Clone for OwnedLockClient
impl Clone for OwnedLockClient
source§fn clone(&self) -> OwnedLockClient
fn clone(&self) -> OwnedLockClient
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 Debug for OwnedLockClient
impl Debug for OwnedLockClient
Auto Trait Implementations§
impl !RefUnwindSafe for OwnedLockClient
impl Send for OwnedLockClient
impl Sync for OwnedLockClient
impl Unpin for OwnedLockClient
impl !UnwindSafe for OwnedLockClient
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