pub struct DataPublisherSettings {
pub data_dir: String,
pub mbytes_per_file: usize,
pub fc_pub_address: String,
pub discard_event_fraction: f32,
pub send_mtb_event_packets: bool,
pub send_rbwaveform_packets: bool,
pub send_rbwf_every_x_event: u32,
pub send_tof_summary_packets: bool,
pub send_tof_event_packets: bool,
pub send_cali_packets: bool,
pub hb_send_interval: u16,
}
Expand description
Configure data storage and packet publishing
Fields§
§data_dir: String
location to store data on TOF computer
mbytes_per_file: usize
The data written on disk gets divided into files of a fixed size.
fc_pub_address: String
The address the flight computer should subscribe to to get tof packets
discard_event_fraction: f32
Mark a certain fraction of events as to be discarded, that is not to be stored on disk 1 = Throw away all events, 0 = throw away no events
send_mtb_event_packets: bool
Send also MastertriggerPackets (this should be turned off in flight - only useful if send_flight_packets is true, otherwise MTB events will get sent as part of TofEvents
send_rbwaveform_packets: bool
switch off waveform sending (in case of we are sending flight packets)
send_rbwf_every_x_event: u32
send only a fraction of all RBWaveform packets 1 = all events, 1000 = every 1/1000 event
send_tof_summary_packets: bool
§send_tof_event_packets: bool
§send_cali_packets: bool
Send the RBCalibration to ground
hb_send_interval: u16
Implementations§
Source§impl DataPublisherSettings
impl DataPublisherSettings
pub fn new() -> Self
pub fn from_datapublisherconfig(&mut self, cfg: &DataPublisherConfig)
Trait Implementations§
Source§impl Clone for DataPublisherSettings
impl Clone for DataPublisherSettings
Source§fn clone(&self) -> DataPublisherSettings
fn clone(&self) -> DataPublisherSettings
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DataPublisherSettings
impl Debug for DataPublisherSettings
Source§impl Default for DataPublisherSettings
impl Default for DataPublisherSettings
Source§impl<'de> Deserialize<'de> for DataPublisherSettings
impl<'de> Deserialize<'de> for DataPublisherSettings
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for DataPublisherSettings
impl Display for DataPublisherSettings
Auto Trait Implementations§
impl Freeze for DataPublisherSettings
impl RefUnwindSafe for DataPublisherSettings
impl Send for DataPublisherSettings
impl Sync for DataPublisherSettings
impl Unpin for DataPublisherSettings
impl UnwindSafe for DataPublisherSettings
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<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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
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>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.