Struct ci2_async::ThreadedAsyncCamera

source ·
pub struct ThreadedAsyncCamera<C> { /* private fields */ }

Implementations§

Trait Implementations§

source§

impl<C> AsyncCamera for ThreadedAsyncCamera<C>
where C: 'static + Camera + Send,

source§

fn frames( &mut self, bufsize: usize ) -> Result<Box<dyn Stream<Item = FrameResult> + Send + Unpin>>

asynchronous frame acquisition, get an infinite stream of frames
source§

impl<C> Camera for ThreadedAsyncCamera<C>
where C: Camera,

source§

fn next_frame(&mut self) -> Result<DynamicFrame>

blocks forever.

source§

fn command_execute(&self, name: &str, verify: bool) -> Result<()>

source§

fn feature_bool(&self, name: &str) -> Result<bool>

source§

fn feature_bool_set(&self, name: &str, value: bool) -> Result<()>

source§

fn feature_enum(&self, name: &str) -> Result<String>

source§

fn feature_enum_set(&self, name: &str, value: &str) -> Result<()>

source§

fn feature_float(&self, name: &str) -> Result<f64>

source§

fn feature_float_set(&self, name: &str, value: f64) -> Result<()>

source§

fn feature_int(&self, name: &str) -> Result<i64>

source§

fn feature_int_set(&self, name: &str, value: i64) -> Result<()>

source§

fn node_map_load(&self, settings: &str) -> Result<()>

Load camera settings from an implementation-dependent settings string. Read more
source§

fn node_map_save(&self) -> Result<String>

Read camera settings to an implementation-dependent settings string. Read more
source§

fn width(&self) -> Result<u32>

Return the sensor width in pixels
source§

fn height(&self) -> Result<u32>

Return the sensor height in pixels
source§

fn pixel_format(&self) -> Result<PixFmt>

source§

fn possible_pixel_formats(&self) -> Result<Vec<PixFmt>>

source§

fn set_pixel_format(&mut self, pixel_format: PixFmt) -> Result<()>

source§

fn exposure_time(&self) -> Result<f64>

value given in microseconds
source§

fn exposure_time_range(&self) -> Result<(f64, f64)>

value given in microseconds
source§

fn set_exposure_time(&mut self, value: f64) -> Result<()>

value given in microseconds
source§

fn gain(&self) -> Result<f64>

value given in dB
source§

fn gain_range(&self) -> Result<(f64, f64)>

value given in dB
source§

fn set_gain(&mut self, value: f64) -> Result<()>

value given in dB
source§

fn exposure_auto(&self) -> Result<AutoMode>

source§

fn set_exposure_auto(&mut self, value: AutoMode) -> Result<()>

source§

fn gain_auto(&self) -> Result<AutoMode>

source§

fn set_gain_auto(&mut self, value: AutoMode) -> Result<()>

source§

fn start_default_external_triggering(&mut self) -> Result<()>

Set the camera to use external triggering using default parameters. Read more
source§

fn set_software_frame_rate_limit(&mut self, fps_limit: f64) -> Result<()>

source§

fn trigger_mode(&self) -> Result<TriggerMode>

source§

fn set_trigger_mode(&mut self, value: TriggerMode) -> Result<()>

source§

fn acquisition_frame_rate_enable(&self) -> Result<bool>

source§

fn set_acquisition_frame_rate_enable(&mut self, value: bool) -> Result<()>

source§

fn acquisition_frame_rate(&self) -> Result<f64>

source§

fn acquisition_frame_rate_range(&self) -> Result<(f64, f64)>

source§

fn set_acquisition_frame_rate(&mut self, value: f64) -> Result<()>

source§

fn trigger_selector(&self) -> Result<TriggerSelector>

source§

fn set_trigger_selector(&mut self, value: TriggerSelector) -> Result<()>

source§

fn acquisition_mode(&self) -> Result<AcquisitionMode>

source§

fn set_acquisition_mode(&mut self, value: AcquisitionMode) -> Result<()>

source§

fn acquisition_start(&mut self) -> Result<()>

source§

fn acquisition_stop(&mut self) -> Result<()>

source§

impl<C> CameraInfo for ThreadedAsyncCamera<C>
where C: CameraInfo,

source§

fn name(&self) -> &str

source§

fn serial(&self) -> &str

source§

fn model(&self) -> &str

source§

fn vendor(&self) -> &str

Auto Trait Implementations§

§

impl<C> Freeze for ThreadedAsyncCamera<C>

§

impl<C> !RefUnwindSafe for ThreadedAsyncCamera<C>

§

impl<C> Send for ThreadedAsyncCamera<C>
where C: Send,

§

impl<C> Sync for ThreadedAsyncCamera<C>
where C: Send,

§

impl<C> Unpin for ThreadedAsyncCamera<C>

§

impl<C> !UnwindSafe for ThreadedAsyncCamera<C>

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> AsAny for T
where T: Any,

source§

fn as_any(&self) -> &(dyn Any + 'static)

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, 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.