Struct fluvio::metadata::store::SimpleConcurrentBTreeMap
source · pub struct SimpleConcurrentBTreeMap<K, V>(/* private fields */);
Implementations§
source§impl<K, V> SimpleConcurrentBTreeMap<K, V>where
K: Ord,
impl<K, V> SimpleConcurrentBTreeMap<K, V>where
K: Ord,
pub fn new() -> SimpleConcurrentBTreeMap<K, V>
pub fn new_with_map(map: BTreeMap<K, V>) -> SimpleConcurrentBTreeMap<K, V>
pub async fn read<'a>(&self) -> RwLockReadGuard<'_, BTreeMap<K, V>>
pub async fn write<'a>(&self) -> RwLockWriteGuard<'_, BTreeMap<K, V>>
pub fn try_write(&self) -> Option<RwLockWriteGuard<'_, BTreeMap<K, V>>>
pub async fn insert(&self, key: K, value: V) -> Option<V>
pub async fn contains_key(&self, key: &K) -> bool
Trait Implementations§
source§impl<K, V> Debug for SimpleConcurrentBTreeMap<K, V>
impl<K, V> Debug for SimpleConcurrentBTreeMap<K, V>
source§impl<K, V> Default for SimpleConcurrentBTreeMap<K, V>where
K: Ord,
impl<K, V> Default for SimpleConcurrentBTreeMap<K, V>where
K: Ord,
source§fn default() -> SimpleConcurrentBTreeMap<K, V>
fn default() -> SimpleConcurrentBTreeMap<K, V>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<K, V> !Freeze for SimpleConcurrentBTreeMap<K, V>
impl<K, V> !RefUnwindSafe for SimpleConcurrentBTreeMap<K, V>
impl<K, V> Send for SimpleConcurrentBTreeMap<K, V>
impl<K, V> Sync for SimpleConcurrentBTreeMap<K, V>
impl<K, V> Unpin for SimpleConcurrentBTreeMap<K, V>
impl<K, V> UnwindSafe for SimpleConcurrentBTreeMap<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
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