pub enum Filed {
Daemon {
task: Task,
pid: Option<u32>,
},
Standalone {
task: Task,
claim: Claim,
},
}Expand description
Who will execute a filed task.
Variants§
Daemon
A loop in another process owns the queue; the task is urgent and
unclaimed. pid is the loop’s, when it published one.
Standalone
Nobody else is serving: the task is claimed for this process, and the claim lives as long as this value.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Filed
impl Freeze for Filedwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Input>: Freeze,
PhantomData<Reassignment>: Freeze,
PhantomData<CompletionEvent>: Freeze,
NonZero<usize>: Freeze,
PhantomData<String>: Freeze,
PhantomData<StartupFailure>: Freeze,
PhantomData<AnsweredQuestion>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
PhantomData<Receipt>: Freeze,
PhantomData<Receipt>: Freeze,
PhantomData<Resumption>: Freeze,
*const SourceProof is !null: Freeze,
PhantomData<SourceProof>: Freeze,
PhantomData<TaskPass>: Freeze,
PhantomData<RecoveryBudget>: Freeze,
impl Move for Filed
impl RefUnwindSafe for Filed
impl Send for Filed
impl Sync for Filed
impl Unpin for Filed
impl UnsafeUnpin for Filedwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Input>: UnsafeUnpin,
PhantomData<Reassignment>: UnsafeUnpin,
PhantomData<CompletionEvent>: UnsafeUnpin,
NonZeroUsizeInner: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<StartupFailure>: UnsafeUnpin,
PhantomData<AnsweredQuestion>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
PhantomData<Receipt>: UnsafeUnpin,
PhantomData<Receipt>: UnsafeUnpin,
PhantomData<Resumption>: UnsafeUnpin,
*const SourceProof is !null: UnsafeUnpin,
PhantomData<SourceProof>: UnsafeUnpin,
PhantomData<TaskPass>: UnsafeUnpin,
PhantomData<RecoveryBudget>: UnsafeUnpin,
impl UnwindSafe for Filedwhere
RawVecInner: UnwindSafe,
NonZero<usize>: UnwindSafe,
BTreeMap<String, String>: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
BoxRaw<SourceProof>: 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more