Struct strand_cam_storetype::StoreType

source ·
pub struct StoreType {
Show 46 fields pub is_braid: bool, pub is_nvenc_functioning: bool, pub is_recording_mp4: Option<RecordingPath>, pub is_recording_fmf: Option<RecordingPath>, pub is_recording_ufmf: Option<RecordingPath>, pub format_str_mp4: String, pub format_str: String, pub format_str_ufmf: String, pub camera_name: String, pub camera_gamma: Option<f32>, pub recording_filename: Option<String>, pub mp4_max_framerate: RecordingFrameRate, pub mp4_bitrate: BitrateSelection, pub mp4_codec: CodecSelection, pub mp4_cuda_device: String, pub gain_auto: Option<AutoMode>, pub gain: RangedValue, pub exposure_auto: Option<AutoMode>, pub exposure_time: RangedValue, pub frame_rate_limit_enabled: bool, pub frame_rate_limit: Option<RangedValue>, pub trigger_mode: TriggerMode, pub trigger_selector: TriggerSelector, pub image_width: u32, pub image_height: u32, pub has_image_tracker_compiled: bool, pub is_doing_object_detection: bool, pub measured_fps: f32, pub is_saving_im_pt_detect_csv: Option<RecordingPath>, pub im_pt_detect_cfg: ImPtDetectCfg, pub has_flydratrax_compiled: bool, pub kalman_tracking_config: KalmanTrackingConfig, pub led_program_config: LedProgramConfig, pub led_box_device_lost: bool, pub led_box_device_state: Option<DeviceState>, pub led_box_device_path: Option<String>, pub has_checkercal_compiled: bool, pub checkerboard_data: CheckerboardCalState, pub checkerboard_save_debug: Option<String>, pub post_trigger_buffer_size: usize, pub cuda_devices: Vec<String>, pub apriltag_state: Option<ApriltagState>, pub im_ops_state: ImOpsState, pub format_str_apriltag_csv: String, pub had_frame_processing_error: bool, pub camera_calibration: Option<Camera<f64>>,
}

Fields§

§is_braid: bool

Whether we are running inside Braid.

§is_nvenc_functioning: bool

Whether we have Nvidia NvEnc encoder available.

§is_recording_mp4: Option<RecordingPath>

is saving MP4 file

§is_recording_fmf: Option<RecordingPath>

is saving FMF file

§is_recording_ufmf: Option<RecordingPath>

is saving UFMF file

§format_str_mp4: String§format_str: String§format_str_ufmf: String§camera_name: String§camera_gamma: Option<f32>§recording_filename: Option<String>§mp4_max_framerate: RecordingFrameRate§mp4_bitrate: BitrateSelection§mp4_codec: CodecSelection§mp4_cuda_device: String

CUDA device number (only used if using nvidia encoder)

§gain_auto: Option<AutoMode>§gain: RangedValue§exposure_auto: Option<AutoMode>§exposure_time: RangedValue§frame_rate_limit_enabled: bool§frame_rate_limit: Option<RangedValue>

None when frame_rate_limit is not supported

§trigger_mode: TriggerMode§trigger_selector: TriggerSelector§image_width: u32§image_height: u32§has_image_tracker_compiled: bool

Whether object detection with image-tracker crate is compiled.

§is_doing_object_detection: bool

Whether object detection is currently used.

§measured_fps: f32§is_saving_im_pt_detect_csv: Option<RecordingPath>

is saving object detection CSV file

§im_pt_detect_cfg: ImPtDetectCfg§has_flydratrax_compiled: bool

Whether flydratrax (2D kalman tracking and LED triggering) is compiled.

§kalman_tracking_config: KalmanTrackingConfig§led_program_config: LedProgramConfig§led_box_device_lost: bool§led_box_device_state: Option<DeviceState>§led_box_device_path: Option<String>§has_checkercal_compiled: bool

Whether checkerboard calibration is compiled.

§checkerboard_data: CheckerboardCalState§checkerboard_save_debug: Option<String>

Path where debug data is being saved.

§post_trigger_buffer_size: usize§cuda_devices: Vec<String>§apriltag_state: Option<ApriltagState>

This is None if no apriltag support is compiled in. Otherwise Some(_).

§im_ops_state: ImOpsState§format_str_apriltag_csv: String§had_frame_processing_error: bool§camera_calibration: Option<Camera<f64>>

The camera calibration (does not contain potential information about water)

Trait Implementations§

source§

impl Clone for StoreType

source§

fn clone(&self) -> StoreType

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for StoreType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for StoreType

source§

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 PartialEq for StoreType

source§

fn eq(&self, other: &StoreType) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for StoreType

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for StoreType

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
source§

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

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

source§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,