pub struct BraidHttpApiSharedState {Show 14 fields
pub trigger_type: TriggerType,
pub needs_clock_model: bool,
pub clock_model: Option<ClockModel>,
pub csv_tables_dirname: Option<RecordingPath>,
pub fake_mp4_recording_path: Option<RecordingPath>,
pub post_trigger_buffer_size: usize,
pub calibration_filename: Option<String>,
pub connected_cameras: Vec<CamInfo>,
pub background_model_updating: BTreeMap<RawCamName, bool>,
pub camera_image_dimensions: BTreeMap<RawCamName, (u32, u32)>,
pub model_server_addr: Option<SocketAddr>,
pub flydra_app_name: String,
pub all_expected_cameras_are_synced: bool,
pub version_update: Option<VersionUpdate>,
}Expand description
Shared state for the Braid HTTP API.
Fields§
§trigger_type: TriggerTypeCamera synchronization trigger configuration.
needs_clock_model: boolWhether a clock model is needed for synchronization.
clock_model: Option<ClockModel>The current clock model for time synchronization.
csv_tables_dirname: Option<RecordingPath>Directory path for CSV table recordings.
fake_mp4_recording_path: Option<RecordingPath>Path for MP4 recording (signals if cameras are recording).
post_trigger_buffer_size: usizeSize of post-trigger buffer in frames.
calibration_filename: Option<String>Filename of camera calibration file.
connected_cameras: Vec<CamInfo>List of connected camera information.
background_model_updating: BTreeMap<RawCamName, bool>Whether the feature detection background model is continuously updating, per camera.
Cameras whose feature detection settings have not (yet) been received are absent from this map.
camera_image_dimensions: BTreeMap<RawCamName, (u32, u32)>Image dimensions as (width, height) in pixels, per camera.
Cameras whose image has not (yet) been received are absent from this map.
model_server_addr: Option<SocketAddr>Address of the model server.
flydra_app_name: StringName of the Flydra application.
all_expected_cameras_are_synced: boolWhether all expected cameras are synchronized.
version_update: Option<VersionUpdate>A newer available release discovered by the background version check, or
None if up to date (or the check has not yet found a newer version).
Trait Implementations§
Source§fn clone(&self) -> BraidHttpApiSharedState
fn clone(&self) -> BraidHttpApiSharedState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§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>,
Auto Trait Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> Preferences for Twhere
T: Serialize + DeserializeOwned,
impl<T> Preferences for Twhere
T: Serialize + DeserializeOwned,
Source§fn save<S>(&self, app: &AppInfo, key: S) -> Result<(), PreferencesError>
fn save<S>(&self, app: &AppInfo, key: S) -> Result<(), PreferencesError>
Source§fn load<S>(app: &AppInfo, key: S) -> Result<T, PreferencesError>
fn load<S>(app: &AppInfo, key: S) -> Result<T, PreferencesError>
key. This is
an instance method which completely overwrites the object’s state with the serialized
data. Thus, it is recommended that you call this method immediately after instantiating
the preferences object. Read more