pub enum QueueType {
Comm,
Getter,
NoWorker,
Single,
}Expand description
队列类型,对齐 TS 版本的 type?: 'comm' | 'getter' | 'noworker' | 'single'
Variants§
Comm
普通队列,带 Worker
Getter
仅获取队列信息(对应 TS 的 getter)
NoWorker
不自动创建 Worker(仅生产,不消费)
Single
单例队列(通常用于全局唯一任务)
Trait Implementations§
impl Copy for QueueType
impl Eq for QueueType
impl StructuralPartialEq for QueueType
Auto Trait Implementations§
impl Freeze for QueueType
impl RefUnwindSafe for QueueType
impl Send for QueueType
impl Sync for QueueType
impl Unpin for QueueType
impl UnwindSafe for QueueType
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)