Skip to main content

WrappedCamera

Struct WrappedCamera 

Source
pub struct WrappedCamera { /* private fields */ }

Trait Implementations§

Source§

impl Camera for WrappedCamera

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, _: f64) -> Result<()>

value given in microseconds
Source§

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

Source§

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

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, _: f64) -> Result<()>

value given in dB
Source§

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

Source§

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

Source§

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

Source§

fn set_trigger_mode(&mut self, _: 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, _: TriggerSelector) -> Result<()>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

synchronous (blocking) frame acquisition
Source§

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

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<(), Error>

Source§

impl CameraInfo for WrappedCamera

Source§

fn name(&self) -> &str

Source§

fn serial(&self) -> &str

Source§

fn model(&self) -> &str

Source§

fn vendor(&self) -> &str

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> 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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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>,

Source§

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

Source§

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> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,