Struct MpscQueueOptions
pub struct MpscQueueOptions {
pub cleanup_batch_size: NonZeroUsize,
pub push_attempts: NonZeroU8,
}Expand description
默认MPSC来源的构造选项;构造后不改变。
Fields§
§cleanup_batch_size: NonZeroUsize每步管理操作最多检查的节点(node)数,包含清理终点;默认64。 不限制普通取出批次,不承诺每次恰好处理满额度。
push_attempts: NonZeroU8接收登记最多进行的原子比较交换(CAS)次数;默认3。 耗尽而未接收时返回Busy;成功后不重复发布原值。
Trait Implementations§
§impl Clone for MpscQueueOptions
impl Clone for MpscQueueOptions
impl Copy for MpscQueueOptions
Auto Trait Implementations§
impl Forget for MpscQueueOptions
impl Freeze for MpscQueueOptions
impl Move for MpscQueueOptions
impl RefUnwindSafe for MpscQueueOptions
impl Send for MpscQueueOptions
impl Sync for MpscQueueOptions
impl Unpin for MpscQueueOptions
impl UnsafeUnpin for MpscQueueOptions
impl UnwindSafe for MpscQueueOptions
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