#[non_exhaustive]pub struct GetAndLockOptions<'a> {
pub key: &'a [u8],
pub scope_name: &'a str,
pub collection_name: &'a str,
pub lock_time: u32,
pub collection_id: Option<u32>,
pub retry_strategy: Arc<dyn RetryStrategy>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.key: &'a [u8]§scope_name: &'a str§collection_name: &'a str§lock_time: u32§collection_id: Option<u32>§retry_strategy: Arc<dyn RetryStrategy>Implementations§
Source§impl<'a> GetAndLockOptions<'a>
impl<'a> GetAndLockOptions<'a>
pub fn new( key: &'a [u8], scope_name: &'a str, collection_name: &'a str, lock_time: u32, ) -> Self
pub fn collection_id(self, collection_id: impl Into<Option<u32>>) -> Self
pub fn retry_strategy(self, retry_strategy: Arc<dyn RetryStrategy>) -> Self
Trait Implementations§
Source§impl<'a> Clone for GetAndLockOptions<'a>
impl<'a> Clone for GetAndLockOptions<'a>
Source§fn clone(&self) -> GetAndLockOptions<'a>
fn clone(&self) -> GetAndLockOptions<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for GetAndLockOptions<'a>
impl<'a> !RefUnwindSafe for GetAndLockOptions<'a>
impl<'a> Send for GetAndLockOptions<'a>
impl<'a> Sync for GetAndLockOptions<'a>
impl<'a> Unpin for GetAndLockOptions<'a>
impl<'a> UnsafeUnpin for GetAndLockOptions<'a>
impl<'a> !UnwindSafe for GetAndLockOptions<'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