pub struct RBitSet { /* private fields */ }Expand description
=== RBitSet (bit set) ===
Implementations§
Source§impl RBitSet
impl RBitSet
pub fn new( connection_manager: Arc<SyncRedisConnectionManager>, name: String, ) -> Self
pub fn set(&self, bit_index: i64) -> RedissonResult<bool>
pub fn clear(&self, bit_index: i64) -> RedissonResult<bool>
pub fn get(&self, bit_index: i64) -> RedissonResult<bool>
pub fn cardinality(&self) -> RedissonResult<u64>
pub fn and(&self, other_set: &RBitSet) -> RedissonResult<()>
pub fn or(&self, other_set: &RBitSet) -> RedissonResult<()>
pub fn xor(&self, other_set: &RBitSet) -> RedissonResult<()>
Trait Implementations§
Source§impl RLockable for RBitSet
impl RLockable for RBitSet
Source§fn get_fair_lock(&self) -> RFairLock
fn get_fair_lock(&self) -> RFairLock
Acquires a fair lock on an object
Source§fn lock(&self) -> RedissonResult<()>
fn lock(&self) -> RedissonResult<()>
Locking objects
Source§fn try_lock(&self) -> RedissonResult<bool>
fn try_lock(&self) -> RedissonResult<bool>
Attempt to lock the object
Source§fn try_lock_timeout(&self, wait_time: Duration) -> RedissonResult<bool>
fn try_lock_timeout(&self, wait_time: Duration) -> RedissonResult<bool>
Attempt to lock the object with a timeout
Source§fn lock_lease(&self, lease_time: Duration) -> RedissonResult<()>
fn lock_lease(&self, lease_time: Duration) -> RedissonResult<()>
Lock the object and set the lease time
Source§fn unlock(&self) -> RedissonResult<bool>
fn unlock(&self) -> RedissonResult<bool>
Unlocking the object
Source§fn force_unlock(&self) -> RedissonResult<bool>
fn force_unlock(&self) -> RedissonResult<bool>
Force unlocking an object
Source§fn is_locked(&self) -> RedissonResult<bool>
fn is_locked(&self) -> RedissonResult<bool>
Check if it is locked
Source§fn is_held_by_current_thread(&self) -> bool
fn is_held_by_current_thread(&self) -> bool
Checks whether the current thread holds the lock
Source§impl RObject for RBitSet
impl RObject for RBitSet
Source§fn delete(&self) -> RedissonResult<bool>
fn delete(&self) -> RedissonResult<bool>
Deleting objects
Source§fn is_exists(&self) -> RedissonResult<bool>
fn is_exists(&self) -> RedissonResult<bool>
Checks if the object exists
Source§fn move_to_db(&self, db_index: i32) -> RedissonResult<bool>
fn move_to_db(&self, db_index: i32) -> RedissonResult<bool>
Move objects to other databases
Source§fn get_expire_time(&self) -> RedissonResult<Option<Duration>>
fn get_expire_time(&self) -> RedissonResult<Option<Duration>>
Getting the expiration time
Source§fn clear_expire(&self) -> RedissonResult<bool>
fn clear_expire(&self) -> RedissonResult<bool>
Clear the expiration time
Auto Trait Implementations§
impl Freeze for RBitSet
impl !RefUnwindSafe for RBitSet
impl Send for RBitSet
impl Sync for RBitSet
impl Unpin for RBitSet
impl !UnwindSafe for RBitSet
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