pub struct MTBSettings {Show 15 fields
pub trigger_type: TriggerType,
pub trigger_prescale: f32,
pub use_combo_trigger: bool,
pub global_trigger_type: TriggerType,
pub global_trigger_prescale: f32,
pub poisson_trigger_rate: u32,
pub gaps_trigger_use_beta: bool,
pub trace_suppression: bool,
pub mtb_timeout_sec: u64,
pub mtb_moni_interval: u64,
pub rb_int_window: u8,
pub tiu_emulation_mode: bool,
pub tiu_ignore_busy: bool,
pub tofbot_webhook: String,
pub hb_send_interval: u64,
}Expand description
Configure the trigger
Fields§
§trigger_type: TriggerTypeSelect the trigger type for this run
trigger_prescale: f32Select the prescale factor for a run. The prescale factor is between 0 (no events) and 1.0 (all events). E.g. 0.1 means allow only 10% of the events THIS DOES NOT APPLY TO THE GAPS OR POISSON TRIGGER!
use_combo_trigger: boolSet to true if we want a combo trigger run
global_trigger_type: TriggerTypeSet the global trigger type. This has to be less strict than the trigger type
global_trigger_prescale: f32Set the gloabl trigger prescale
poisson_trigger_rate: u32in case trigger_type = “Poisson”, set rate here
gaps_trigger_use_beta: boolin case trigger_type = “Gaps”, set if we want to use beta
trace_suppression: boolIn case we are running the fixed rate trigger, set the desired rate here not sure Enable trace suppression on the MTB. If enabled, only those RB which hits will read out waveforms. In case it is disabled, ALL RBs will readout events ALL the time. For this, we need also the eventbuilder strategy “WaitForNBoards(40)”
mtb_timeout_sec: u64The number of seconds we want to wait without hearing from the MTB before we attempt a reconnect
mtb_moni_interval: u64Time in seconds between housekkeping packets
rb_int_window: u8§tiu_emulation_mode: bool§tiu_ignore_busy: bool§tofbot_webhook: String§hb_send_interval: u64Implementations§
Source§impl MTBSettings
impl MTBSettings
pub fn new() -> Self
Sourcepub fn emit_triggerconfig(&self) -> TriggerConfig
pub fn emit_triggerconfig(&self) -> TriggerConfig
Emit a config, so that infomraiton can be transported over the wire
Sourcepub fn from_triggerconfig(&mut self, cfg: &TriggerConfig)
pub fn from_triggerconfig(&mut self, cfg: &TriggerConfig)
Change seetings accordingly to config
Trait Implementations§
Source§impl Clone for MTBSettings
impl Clone for MTBSettings
Source§fn clone(&self) -> MTBSettings
fn clone(&self) -> MTBSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MTBSettings
impl Debug for MTBSettings
Source§impl Default for MTBSettings
impl Default for MTBSettings
Source§impl<'de> Deserialize<'de> for MTBSettings
impl<'de> Deserialize<'de> for MTBSettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for MTBSettings
impl Display for MTBSettings
Auto Trait Implementations§
impl Freeze for MTBSettings
impl RefUnwindSafe for MTBSettings
impl Send for MTBSettings
impl Sync for MTBSettings
impl Unpin for MTBSettings
impl UnwindSafe for MTBSettings
Blanket Implementations§
Source§impl<T> AggregateExpressionMethods for T
impl<T> AggregateExpressionMethods for T
Source§fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
DISTINCT modifier for aggregate functions Read moreSource§fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
ALL modifier for aggregate functions Read moreSource§fn aggregate_filter<P>(self, f: P) -> Self::Output
fn aggregate_filter<P>(self, f: P) -> Self::Output
Source§fn aggregate_order<O>(self, o: O) -> Self::Outputwhere
Self: OrderAggregateDsl<O>,
fn aggregate_order<O>(self, o: O) -> Self::Outputwhere
Self: OrderAggregateDsl<O>,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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>
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>
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
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
&self to an expression for Diesel’s query builder. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more