Trait ci2::CameraModule
source · pub trait CameraModule: Send {
type CameraType: Camera;
type Guard;
// Required methods
fn name(&self) -> &str;
fn camera_infos(&self) -> Result<Vec<Box<dyn CameraInfo>>>;
fn camera(&mut self, name: &str) -> Result<Self::CameraType>;
fn settings_file_extension(&self) -> &str;
fn frame_info_extractor(&self) -> &'static dyn ExtractFrameInfo;
}
Expand description
A module for opening cameras (e.g. pylon).
Required Associated Types§
type CameraType: Camera
type Guard
Required Methods§
fn name(&self) -> &str
fn camera_infos(&self) -> Result<Vec<Box<dyn CameraInfo>>>
fn camera(&mut self, name: &str) -> Result<Self::CameraType>
sourcefn settings_file_extension(&self) -> &str
fn settings_file_extension(&self) -> &str
The file extension for node map settings.
The strings used in Camera::node_map_load and Camera::node_map_save would typically be stored in files with this extension.