pub struct Namespace<E: Engine> {
pub id: u64,
/* private fields */
}Expand description
Namespace handle for tenant data isolation (u64 numerical identifier) 命名空间句柄对象(纯数字编号 u64 隔离)
Fields§
§id: u64Implementations§
Source§impl<E: Engine> Namespace<E>
impl<E: Engine> Namespace<E>
Sourcepub fn batch_with_capacity(&self, capacity: usize) -> DbBatch<E>
pub fn batch_with_capacity(&self, capacity: usize) -> DbBatch<E>
Create a batch write handle with pre-allocated capacity 创建具有预分配容量槽位的批量写入句柄
Trait Implementations§
Auto Trait Implementations§
impl<E> !RefUnwindSafe for Namespace<E>
impl<E> !UnwindSafe for Namespace<E>
impl<E> Freeze for Namespace<E>
impl<E> Send for Namespace<E>
impl<E> Sync for Namespace<E>
impl<E> Unpin for Namespace<E>
impl<E> UnsafeUnpin for Namespace<E>where
Arc<WeDbInner<E>>: UnsafeUnpin,
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