pub trait CameraExt:
IsA<Camera>
+ Sealed
+ 'static {
Show 103 methods
// Provided methods
fn abort_acquisition(&self) -> Result<(), Error> { ... }
fn acquisition(&self, timeout: u64) -> Result<Buffer, Error> { ... }
fn clear_triggers(&self) -> Result<(), Error> { ... }
fn create_chunk_parser(&self) -> Option<ChunkParser> { ... }
fn dup_available_enumerations(
&self,
feature: &str,
) -> Result<Vec<i64>, Error> { ... }
fn dup_available_enumerations_as_display_names(
&self,
feature: &str,
) -> Result<Vec<GString>, Error> { ... }
fn dup_available_enumerations_as_strings(
&self,
feature: &str,
) -> Result<Vec<GString>, Error> { ... }
fn dup_available_pixel_formats(&self) -> Result<Vec<i64>, Error> { ... }
fn dup_available_pixel_formats_as_display_names(
&self,
) -> Result<Vec<GString>, Error> { ... }
fn dup_available_pixel_formats_as_strings(
&self,
) -> Result<Vec<GString>, Error> { ... }
fn dup_available_trigger_sources(&self) -> Result<Vec<GString>, Error> { ... }
fn dup_available_triggers(&self) -> Result<Vec<GString>, Error> { ... }
fn execute_command(&self, feature: &str) -> Result<(), Error> { ... }
fn acquisition_mode(&self) -> Result<AcquisitionMode, Error> { ... }
fn binning(&self) -> Result<(i32, i32), Error> { ... }
fn boolean(&self, feature: &str) -> Result<bool, Error> { ... }
fn chunk_mode(&self) -> Result<bool, Error> { ... }
fn chunk_state(&self, chunk: &str) -> Result<bool, Error> { ... }
fn device(&self) -> Option<Device> { ... }
fn device_id(&self) -> Result<GString, Error> { ... }
fn exposure_time(&self) -> Result<f64, Error> { ... }
fn exposure_time_auto(&self) -> Result<Auto, Error> { ... }
fn exposure_time_bounds(&self) -> Result<(f64, f64), Error> { ... }
fn float(&self, feature: &str) -> Result<f64, Error> { ... }
fn float_bounds(&self, feature: &str) -> Result<(f64, f64), Error> { ... }
fn frame_count(&self) -> Result<i64, Error> { ... }
fn frame_count_bounds(&self) -> Result<(i64, i64), Error> { ... }
fn frame_rate(&self) -> Result<f64, Error> { ... }
fn frame_rate_bounds(&self) -> Result<(f64, f64), Error> { ... }
fn gain(&self) -> Result<f64, Error> { ... }
fn gain_auto(&self) -> Result<Auto, Error> { ... }
fn gain_bounds(&self) -> Result<(f64, f64), Error> { ... }
fn height_bounds(&self) -> Result<(i32, i32), Error> { ... }
fn height_increment(&self) -> Result<i32, Error> { ... }
fn integer(&self, feature: &str) -> Result<i64, Error> { ... }
fn integer_bounds(&self, feature: &str) -> Result<(i64, i64), Error> { ... }
fn integer_increment(&self, feature: &str) -> Result<i64, Error> { ... }
fn model_name(&self) -> Result<GString, Error> { ... }
fn payload(&self) -> Result<u32, Error> { ... }
fn pixel_format(&self) -> Result<PixelFormat, Error> { ... }
fn pixel_format_as_string(&self) -> Result<GString, Error> { ... }
fn region(&self) -> Result<(i32, i32, i32, i32), Error> { ... }
fn sensor_size(&self) -> Result<(i32, i32), Error> { ... }
fn string(&self, feature: &str) -> Result<GString, Error> { ... }
fn trigger_source(&self) -> Result<GString, Error> { ... }
fn vendor_name(&self) -> Result<GString, Error> { ... }
fn width_bounds(&self) -> Result<(i32, i32), Error> { ... }
fn width_increment(&self) -> Result<i32, Error> { ... }
fn x_binning_bounds(&self) -> Result<(i32, i32), Error> { ... }
fn x_binning_increment(&self) -> Result<i32, Error> { ... }
fn x_offset_bounds(&self) -> Result<(i32, i32), Error> { ... }
fn x_offset_increment(&self) -> Result<i32, Error> { ... }
fn y_binning_bounds(&self) -> Result<(i32, i32), Error> { ... }
fn y_binning_increment(&self) -> Result<i32, Error> { ... }
fn y_offset_bounds(&self) -> Result<(i32, i32), Error> { ... }
fn y_offset_increment(&self) -> Result<i32, Error> { ... }
fn gv_auto_packet_size(&self) -> Result<(), Error> { ... }
fn gv_get_current_stream_channel(&self) -> Result<i32, Error> { ... }
fn gv_get_n_stream_channels(&self) -> Result<i32, Error> { ... }
fn gv_get_packet_delay(&self) -> Result<i64, Error> { ... }
fn gv_get_packet_size(&self) -> Result<u32, Error> { ... }
fn gv_select_stream_channel(&self, channel_id: i32) -> Result<(), Error> { ... }
fn gv_set_packet_delay(&self, delay_ns: i64) -> Result<(), Error> { ... }
fn gv_set_packet_size(&self, packet_size: i32) -> Result<(), Error> { ... }
fn gv_set_stream_options(&self, options: GvStreamOption) { ... }
fn is_binning_available(&self) -> Result<bool, Error> { ... }
fn is_exposure_auto_available(&self) -> Result<bool, Error> { ... }
fn is_exposure_time_available(&self) -> Result<bool, Error> { ... }
fn is_feature_available(&self, feature: &str) -> Result<bool, Error> { ... }
fn is_frame_rate_available(&self) -> Result<bool, Error> { ... }
fn is_gain_auto_available(&self) -> Result<bool, Error> { ... }
fn is_gain_available(&self) -> Result<bool, Error> { ... }
fn is_gv_device(&self) -> bool { ... }
fn is_uv_device(&self) -> bool { ... }
fn set_acquisition_mode(&self, value: AcquisitionMode) -> Result<(), Error> { ... }
fn set_binning(&self, dx: i32, dy: i32) -> Result<(), Error> { ... }
fn set_boolean(&self, feature: &str, value: bool) -> Result<(), Error> { ... }
fn set_chunk_mode(&self, is_active: bool) -> Result<(), Error> { ... }
fn set_chunk_state(
&self,
chunk: &str,
is_enabled: bool,
) -> Result<(), Error> { ... }
fn set_chunks(&self, chunk_list: &str) -> Result<(), Error> { ... }
fn set_exposure_mode(&self, mode: ExposureMode) -> Result<(), Error> { ... }
fn set_exposure_time(&self, exposure_time_us: f64) -> Result<(), Error> { ... }
fn set_exposure_time_auto(&self, auto_mode: Auto) -> Result<(), Error> { ... }
fn set_float(&self, feature: &str, value: f64) -> Result<(), Error> { ... }
fn set_frame_count(&self, frame_count: i64) -> Result<(), Error> { ... }
fn set_frame_rate(&self, frame_rate: f64) -> Result<(), Error> { ... }
fn set_frame_rate_enable(&self, enable: bool) -> Result<(), Error> { ... }
fn set_gain(&self, gain: f64) -> Result<(), Error> { ... }
fn set_gain_auto(&self, auto_mode: Auto) -> Result<(), Error> { ... }
fn set_integer(&self, feature: &str, value: i64) -> Result<(), Error> { ... }
fn set_pixel_format(&self, format: PixelFormat) -> Result<(), Error> { ... }
fn set_pixel_format_from_string(&self, format: &str) -> Result<(), Error> { ... }
fn set_region(
&self,
x: i32,
y: i32,
width: i32,
height: i32,
) -> Result<(), Error> { ... }
fn set_string(&self, feature: &str, value: &str) -> Result<(), Error> { ... }
fn set_trigger(&self, source: &str) -> Result<(), Error> { ... }
fn set_trigger_source(&self, source: &str) -> Result<(), Error> { ... }
fn software_trigger(&self) -> Result<(), Error> { ... }
fn start_acquisition(&self) -> Result<(), Error> { ... }
fn stop_acquisition(&self) -> Result<(), Error> { ... }
fn uv_get_bandwidth(&self) -> Result<u32, Error> { ... }
fn uv_get_bandwidth_bounds(&self) -> Result<(u32, u32), Error> { ... }
fn uv_is_bandwidth_control_available(&self) -> Result<(), Error> { ... }
fn uv_set_bandwidth(&self, bandwidth: u32) -> Result<(), Error> { ... }
}Provided Methods§
fn abort_acquisition(&self) -> Result<(), Error>
fn acquisition(&self, timeout: u64) -> Result<Buffer, Error>
fn clear_triggers(&self) -> Result<(), Error>
fn create_chunk_parser(&self) -> Option<ChunkParser>
fn dup_available_enumerations(&self, feature: &str) -> Result<Vec<i64>, Error>
fn dup_available_enumerations_as_display_names( &self, feature: &str, ) -> Result<Vec<GString>, Error>
fn dup_available_enumerations_as_strings( &self, feature: &str, ) -> Result<Vec<GString>, Error>
fn dup_available_pixel_formats(&self) -> Result<Vec<i64>, Error>
fn dup_available_pixel_formats_as_display_names( &self, ) -> Result<Vec<GString>, Error>
fn dup_available_pixel_formats_as_strings(&self) -> Result<Vec<GString>, Error>
fn dup_available_trigger_sources(&self) -> Result<Vec<GString>, Error>
fn dup_available_triggers(&self) -> Result<Vec<GString>, Error>
fn execute_command(&self, feature: &str) -> Result<(), Error>
fn acquisition_mode(&self) -> Result<AcquisitionMode, Error>
fn binning(&self) -> Result<(i32, i32), Error>
fn boolean(&self, feature: &str) -> Result<bool, Error>
fn chunk_mode(&self) -> Result<bool, Error>
fn chunk_state(&self, chunk: &str) -> Result<bool, Error>
fn device(&self) -> Option<Device>
fn device_id(&self) -> Result<GString, Error>
fn exposure_time(&self) -> Result<f64, Error>
fn exposure_time_auto(&self) -> Result<Auto, Error>
fn exposure_time_bounds(&self) -> Result<(f64, f64), Error>
fn float(&self, feature: &str) -> Result<f64, Error>
fn float_bounds(&self, feature: &str) -> Result<(f64, f64), Error>
fn frame_count(&self) -> Result<i64, Error>
fn frame_count_bounds(&self) -> Result<(i64, i64), Error>
fn frame_rate(&self) -> Result<f64, Error>
fn frame_rate_bounds(&self) -> Result<(f64, f64), Error>
fn gain(&self) -> Result<f64, Error>
fn gain_auto(&self) -> Result<Auto, Error>
fn gain_bounds(&self) -> Result<(f64, f64), Error>
fn height_bounds(&self) -> Result<(i32, i32), Error>
fn height_increment(&self) -> Result<i32, Error>
fn integer(&self, feature: &str) -> Result<i64, Error>
fn integer_bounds(&self, feature: &str) -> Result<(i64, i64), Error>
fn integer_increment(&self, feature: &str) -> Result<i64, Error>
fn model_name(&self) -> Result<GString, Error>
fn payload(&self) -> Result<u32, Error>
fn pixel_format(&self) -> Result<PixelFormat, Error>
fn pixel_format_as_string(&self) -> Result<GString, Error>
fn region(&self) -> Result<(i32, i32, i32, i32), Error>
fn sensor_size(&self) -> Result<(i32, i32), Error>
fn string(&self, feature: &str) -> Result<GString, Error>
fn trigger_source(&self) -> Result<GString, Error>
fn vendor_name(&self) -> Result<GString, Error>
fn width_bounds(&self) -> Result<(i32, i32), Error>
fn width_increment(&self) -> Result<i32, Error>
fn x_binning_bounds(&self) -> Result<(i32, i32), Error>
fn x_binning_increment(&self) -> Result<i32, Error>
fn x_offset_bounds(&self) -> Result<(i32, i32), Error>
fn x_offset_increment(&self) -> Result<i32, Error>
fn y_binning_bounds(&self) -> Result<(i32, i32), Error>
fn y_binning_increment(&self) -> Result<i32, Error>
fn y_offset_bounds(&self) -> Result<(i32, i32), Error>
fn y_offset_increment(&self) -> Result<i32, Error>
fn gv_auto_packet_size(&self) -> Result<(), Error>
fn gv_get_current_stream_channel(&self) -> Result<i32, Error>
fn gv_get_n_stream_channels(&self) -> Result<i32, Error>
fn gv_get_packet_delay(&self) -> Result<i64, Error>
fn gv_get_packet_size(&self) -> Result<u32, Error>
fn gv_select_stream_channel(&self, channel_id: i32) -> Result<(), Error>
fn gv_set_packet_delay(&self, delay_ns: i64) -> Result<(), Error>
fn gv_set_packet_size(&self, packet_size: i32) -> Result<(), Error>
fn gv_set_stream_options(&self, options: GvStreamOption)
fn is_binning_available(&self) -> Result<bool, Error>
fn is_exposure_auto_available(&self) -> Result<bool, Error>
fn is_exposure_time_available(&self) -> Result<bool, Error>
fn is_feature_available(&self, feature: &str) -> Result<bool, Error>
fn is_frame_rate_available(&self) -> Result<bool, Error>
fn is_gain_auto_available(&self) -> Result<bool, Error>
fn is_gain_available(&self) -> Result<bool, Error>
fn is_gv_device(&self) -> bool
fn is_uv_device(&self) -> bool
fn set_acquisition_mode(&self, value: AcquisitionMode) -> Result<(), Error>
fn set_binning(&self, dx: i32, dy: i32) -> Result<(), Error>
fn set_boolean(&self, feature: &str, value: bool) -> Result<(), Error>
fn set_chunk_mode(&self, is_active: bool) -> Result<(), Error>
fn set_chunk_state(&self, chunk: &str, is_enabled: bool) -> Result<(), Error>
fn set_chunks(&self, chunk_list: &str) -> Result<(), Error>
fn set_exposure_mode(&self, mode: ExposureMode) -> Result<(), Error>
fn set_exposure_time(&self, exposure_time_us: f64) -> Result<(), Error>
fn set_exposure_time_auto(&self, auto_mode: Auto) -> Result<(), Error>
fn set_float(&self, feature: &str, value: f64) -> Result<(), Error>
fn set_frame_count(&self, frame_count: i64) -> Result<(), Error>
fn set_frame_rate(&self, frame_rate: f64) -> Result<(), Error>
fn set_frame_rate_enable(&self, enable: bool) -> Result<(), Error>
fn set_gain(&self, gain: f64) -> Result<(), Error>
fn set_gain_auto(&self, auto_mode: Auto) -> Result<(), Error>
fn set_integer(&self, feature: &str, value: i64) -> Result<(), Error>
fn set_pixel_format(&self, format: PixelFormat) -> Result<(), Error>
fn set_pixel_format_from_string(&self, format: &str) -> Result<(), Error>
fn set_region( &self, x: i32, y: i32, width: i32, height: i32, ) -> Result<(), Error>
fn set_string(&self, feature: &str, value: &str) -> Result<(), Error>
fn set_trigger(&self, source: &str) -> Result<(), Error>
fn set_trigger_source(&self, source: &str) -> Result<(), Error>
fn software_trigger(&self) -> Result<(), Error>
fn start_acquisition(&self) -> Result<(), Error>
fn stop_acquisition(&self) -> Result<(), Error>
fn uv_get_bandwidth(&self) -> Result<u32, Error>
fn uv_get_bandwidth_bounds(&self) -> Result<(u32, u32), Error>
fn uv_is_bandwidth_control_available(&self) -> Result<(), Error>
fn uv_set_bandwidth(&self, bandwidth: u32) -> Result<(), Error>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.