Skip to main content

InstantCamera

Struct InstantCamera 

Source
pub struct InstantCamera { /* private fields */ }
Expand description

Camera handle used to open, configure, and grab from a device.

Implementations§

Source§

impl InstantCamera

Source

pub fn device_info(&self) -> PylonResult<DeviceInfo>

Returns metadata for the attached device.

Source

pub fn open(&self) -> PylonResult<()>

Opens the camera.

Source

pub fn is_open(&self) -> PylonResult<bool>

Returns whether the camera is open.

Source

pub fn close(&self) -> PylonResult<()>

Closes the camera.

Source

pub fn start_grabbing(&self, options: &GrabOptions) -> PylonResult<()>

Starts grabbing using the supplied options.

Source

pub fn stop_grabbing(&self) -> PylonResult<()>

Stops any active grab operation.

Source

pub fn is_grabbing(&self) -> bool

Returns true while the camera is actively grabbing.

Source

pub fn retrieve_result( &self, timeout_ms: u32, grab_result: &mut GrabResult, timeout_handling: TimeoutHandling, ) -> PylonResult<bool>

Waits for the next grab result.

Returns Ok(true) when a result was retrieved.

Source§

impl InstantCamera

Source

pub fn node_map<'a>(&'a self) -> PylonResult<NodeMap<'a>>

Returns the camera node map.

Source

pub fn tl_node_map<'a>(&'a self) -> PylonResult<NodeMap<'a>>

Returns the transport-layer node map.

Source

pub fn stream_grabber_node_map<'a>(&'a self) -> PylonResult<NodeMap<'a>>

Returns the stream-grabber node map.

Source

pub fn event_grabber_node_map<'a>(&'a self) -> PylonResult<NodeMap<'a>>

Returns the event-grabber node map.

Source

pub fn instant_camera_node_map<'a>(&'a self) -> PylonResult<NodeMap<'a>>

Returns the instant-camera node map.

Trait Implementations§

Source§

impl Drop for InstantCamera

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl Send for InstantCamera

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