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 duplicate 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 Freeze for OwnedLockClient
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more