pub struct Task {
pub stage: ContigProcessingStage,
pub sample_name: String,
pub contig_name: String,
pub sequence: Contig,
}Expand description
A task for the worker queue
This matches C++ AGC’s task_t typedef (agc_compressor.h:656):
using task_t = tuple<contig_processing_stage_t, string, string, contig_t>;Fields:
stage: What type of processing this task needssample_name: Which sample this contig belongs tocontig_name: Contig identifier (chromosome name, etc.)sequence: The actual sequence data
For synchronization tasks (Registration, NewSplitters):
sample_name,contig_name, andsequenceare empty- Workers detect sync tasks and enter barrier synchronization
Fields§
§stage: ContigProcessingStage§sample_name: String§contig_name: String§sequence: ContigImplementations§
Source§impl Task
impl Task
Sourcepub fn new_contig(
sample_name: String,
contig_name: String,
sequence: Contig,
stage: ContigProcessingStage,
) -> Self
pub fn new_contig( sample_name: String, contig_name: String, sequence: Contig, stage: ContigProcessingStage, ) -> Self
Create a new contig processing task
Sourcepub fn new_sync(stage: ContigProcessingStage) -> Self
pub fn new_sync(stage: ContigProcessingStage) -> Self
Create a synchronization barrier task
This is sent N times (once per worker) to trigger barrier synchronization. Matches C++ AGC’s EmplaceManyNoCost() pattern (agc_compressor.cpp:2197).
Trait Implementations§
impl Eq for Task
impl StructuralPartialEq for Task
Auto Trait Implementations§
impl Freeze for Task
impl RefUnwindSafe for Task
impl Send for Task
impl Sync for Task
impl Unpin for Task
impl UnwindSafe for Task
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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