Skip to main content

WrappedCamera

Struct WrappedCamera 

Source
pub struct WrappedCamera<'lib> {
    pub camera: Arc<Mutex<Camera<'lib>>>,
    pub info: VimbaCameraInfo,
    /* private fields */
}

Fields§

§camera: Arc<Mutex<Camera<'lib>>>§info: VimbaCameraInfo

Trait Implementations§

Source§

impl<'lib> Camera for WrappedCamera<'lib>

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

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

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

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

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

Return the sensor width in pixels
Source§

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

Return the sensor height in pixels
Source§

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

Source§

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

Source§

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

Source§

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

value given in microseconds
Source§

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

value given in microseconds
Source§

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

value given in microseconds
Source§

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

Source§

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

Source§

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

value given in dB
Source§

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

value given in dB
Source§

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

value given in dB
Source§

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

Source§

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

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§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

synchronous (blocking) frame acquisition
Source§

impl<'lib> CameraInfo for WrappedCamera<'lib>

Source§

fn name(&self) -> &str

Source§

fn serial(&self) -> &str

Source§

fn model(&self) -> &str

Source§

fn vendor(&self) -> &str

Auto Trait Implementations§

§

impl<'lib> Freeze for WrappedCamera<'lib>

§

impl<'lib> RefUnwindSafe for WrappedCamera<'lib>

§

impl<'lib> Send for WrappedCamera<'lib>

§

impl<'lib> !Sync for WrappedCamera<'lib>

§

impl<'lib> Unpin for WrappedCamera<'lib>

§

impl<'lib> UnsafeUnpin for WrappedCamera<'lib>

§

impl<'lib> UnwindSafe for WrappedCamera<'lib>

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,