pub struct SwmrCellBuilder<T> { /* private fields */ }Expand description
A builder for configuring and creating a SWMR cell.
用于配置和创建 SWMR 单元的构建器。
Implementations§
Source§impl<T: 'static> SwmrCellBuilder<T>
impl<T: 'static> SwmrCellBuilder<T>
Sourcepub fn auto_reclaim_threshold(self, threshold: Option<usize>) -> Self
pub fn auto_reclaim_threshold(self, threshold: Option<usize>) -> Self
Sets the threshold for automatic garbage reclamation.
When the number of retired objects exceeds this threshold,
garbage collection is triggered automatically during store.
Set to None to disable automatic reclamation.
Default is Some(64).
设置自动垃圾回收的阈值。
当已退休对象的数量超过此阈值时,将在 store 期间自动触发垃圾回收。
设置为 None 以禁用自动回收。
默认为 Some(64)。
Auto Trait Implementations§
impl<T> Freeze for SwmrCellBuilder<T>
impl<T> RefUnwindSafe for SwmrCellBuilder<T>where
T: RefUnwindSafe,
impl<T> Send for SwmrCellBuilder<T>where
T: Send,
impl<T> Sync for SwmrCellBuilder<T>where
T: Sync,
impl<T> Unpin for SwmrCellBuilder<T>where
T: Unpin,
impl<T> UnwindSafe for SwmrCellBuilder<T>where
T: UnwindSafe,
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