Struct flydra_types::BraidCameraConfig
source · pub struct BraidCameraConfig {
pub name: String,
pub camera_settings_filename: Option<PathBuf>,
pub pixel_format: Option<String>,
pub point_detection_config: ImPtDetectCfg,
pub raise_grab_thread_priority: bool,
pub start_backend: StartCameraBackend,
pub acquisition_duration_allowed_imprecision_msec: Option<f64>,
pub http_server_addr: Option<String>,
}
Fields§
§name: String
The name of the camera (e.g. “Basler-22005677”)
(This is the original UTF-8 camera name, not the ROS-encoded camera name in which certain characters are not allowed.)
camera_settings_filename: Option<PathBuf>
Filename of vendor-specific camera settings file.
pixel_format: Option<String>
The pixel format to use.
point_detection_config: ImPtDetectCfg
Configuration for detecting points.
raise_grab_thread_priority: bool
Whether to raise the priority of the grab thread.
start_backend: StartCameraBackend
Which camera backend to use.
acquisition_duration_allowed_imprecision_msec: Option<f64>
§http_server_addr: Option<String>
The SocketAddr on which the strand camera BUI server should run.
Implementations§
source§impl BraidCameraConfig
impl BraidCameraConfig
pub fn default_absdiff_config(name: String) -> Self
Trait Implementations§
source§impl Clone for BraidCameraConfig
impl Clone for BraidCameraConfig
source§fn clone(&self) -> BraidCameraConfig
fn clone(&self) -> BraidCameraConfig
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 BraidCameraConfig
impl Debug for BraidCameraConfig
source§impl<'de> Deserialize<'de> for BraidCameraConfig
impl<'de> Deserialize<'de> for BraidCameraConfig
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 PartialEq for BraidCameraConfig
impl PartialEq for BraidCameraConfig
source§fn eq(&self, other: &BraidCameraConfig) -> bool
fn eq(&self, other: &BraidCameraConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BraidCameraConfig
impl Serialize for BraidCameraConfig
impl StructuralPartialEq for BraidCameraConfig
Auto Trait Implementations§
impl RefUnwindSafe for BraidCameraConfig
impl Send for BraidCameraConfig
impl Sync for BraidCameraConfig
impl Unpin for BraidCameraConfig
impl UnwindSafe for BraidCameraConfig
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> 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<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.