pub struct ThreadControl {Show 13 fields
pub stop_flag: bool,
pub calibration_active: bool,
pub finished_calibrations: HashMap<u8, bool>,
pub thread_cmd_dispatch_active: bool,
pub thread_data_sink_active: bool,
pub thread_runner_active: bool,
pub thread_event_bldr_active: bool,
pub thread_master_trg_active: bool,
pub thread_monitoring_active: bool,
pub thread_rbcomm_active: HashMap<u8, bool>,
pub run_id: u32,
pub n_rbs: u32,
pub write_data_to_disk: bool,
}
Expand description
Send runtime information to threads via shared memory (Arc(Mutex)
Fields§
§stop_flag: bool
Stop ALL threads
calibration_active: bool
Trigger calibration thread
finished_calibrations: HashMap<u8, bool>
Keep track on how many calibration packets we have received
thread_cmd_dispatch_active: bool
alive indicator for cmd dispatch thread
thread_data_sink_active: bool
alive indicator for data sink thread
thread_runner_active: bool
alive indicator for runner thread
thread_event_bldr_active: bool
alive indicator for event builder thread
thread_master_trg_active: bool
alive indicator for master trigger thread
thread_monitoring_active: bool
alive indicator for monitoring thread
thread_rbcomm_active: HashMap<u8, bool>
Running readoutboard communicator threads - the key is associated rb id
run_id: u32
The current run id
n_rbs: u32
The number of boards available
write_data_to_disk: bool
Write data to disk
Implementations§
Source§impl ThreadControl
impl ThreadControl
Trait Implementations§
Source§impl Debug for ThreadControl
impl Debug for ThreadControl
Source§impl Default for ThreadControl
impl Default for ThreadControl
Source§fn default() -> ThreadControl
fn default() -> ThreadControl
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ThreadControl
impl RefUnwindSafe for ThreadControl
impl Send for ThreadControl
impl Sync for ThreadControl
impl Unpin for ThreadControl
impl UnwindSafe for ThreadControl
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> 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 moreSource§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self
to an expression for Diesel’s query builder. Read more