Skip to main content

Camera

Struct Camera 

Source
pub struct Camera<'lib> { /* private fields */ }

Implementations§

Source§

impl<'lib> Camera<'lib>

Source

pub fn open( camera_id: &str, access_mode: AccessMode, vimba_lib: &'lib VimbaC, ) -> Result<Self>

Source

pub fn close(self) -> Result<()>

Source

pub fn handle(&self) -> VmbHandle_t

Source

pub fn feature_enum(&self, feature_name: &str) -> Result<&'static str>

Source

pub fn feature_enum_range_query( &self, feature_name: &str, ) -> Result<Vec<String>>

Source

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

Source

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

Query the access permissions of feature with name.

The return value is (is_readable, is_writeable).

Source

pub fn feature_string_set(&self, feature_name: &str, value: &str) -> Result<()>

Source

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

Source

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

Source

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

Source

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

Source

pub fn feature_float_range_query( &self, feature_name: &str, ) -> Result<(f64, f64)>

Source

pub fn feature_boolean(&self, feature_name: &str) -> Result<bool>

Source

pub fn feature_boolean_set(&self, feature_name: &str, value: bool) -> Result<()>

Source

pub fn command_run(&self, command_name: &str) -> Result<()>

Source

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

Source

pub fn allocate_buffer(&self) -> Result<Vec<u8>>

Source

pub fn frame_announce(&self, frame: &mut Frame) -> Result<()>

Source

pub fn frame_revoke(&self, frame: &mut Frame) -> Result<()>

Source

pub fn capture_start(&self) -> Result<()>

Source

pub fn capture_end(&self) -> Result<()>

Source

pub fn capture_frame_queue(&self, frame: &mut Frame) -> Result<()>

Source

pub fn capture_frame_queue_with_callback( &self, frame: &mut Frame, callback: VmbFrameCallback, ) -> Result<()>

Source

pub fn capture_queue_flush(&self) -> Result<()>

Source

pub fn capture_frame_wait(&self, frame: &mut Frame, timeout: u32) -> Result<()>

Source

pub fn camera_settings_save<P: AsRef<Path>>( &self, out_path: P, p_settings: &VmbFeaturePersistSettings_t, ) -> Result<()>

Source

pub fn camera_settings_load<P: AsRef<Path>>( &self, in_path: P, p_settings: &VmbFeaturePersistSettings_t, ) -> Result<()>

Trait Implementations§

Source§

impl<'lib> Debug for Camera<'lib>

Source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'lib> Drop for Camera<'lib>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl<'lib> Send for Camera<'lib>

Auto Trait Implementations§

§

impl<'lib> Freeze for Camera<'lib>

§

impl<'lib> !RefUnwindSafe for Camera<'lib>

§

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

§

impl<'lib> Unpin for Camera<'lib>

§

impl<'lib> UnsafeUnpin for Camera<'lib>

§

impl<'lib> !UnwindSafe for Camera<'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> 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, 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