pub struct InstantCamera { /* private fields */ }Expand description
Camera handle used to open, configure, and grab from a device.
Implementations§
Source§impl InstantCamera
impl InstantCamera
Sourcepub fn device_info(&self) -> PylonResult<DeviceInfo>
pub fn device_info(&self) -> PylonResult<DeviceInfo>
Returns metadata for the attached device.
Sourcepub fn open(&self) -> PylonResult<()>
pub fn open(&self) -> PylonResult<()>
Opens the camera.
Sourcepub fn is_open(&self) -> PylonResult<bool>
pub fn is_open(&self) -> PylonResult<bool>
Returns whether the camera is open.
Sourcepub fn close(&self) -> PylonResult<()>
pub fn close(&self) -> PylonResult<()>
Closes the camera.
Sourcepub fn start_grabbing(&self, options: &GrabOptions) -> PylonResult<()>
pub fn start_grabbing(&self, options: &GrabOptions) -> PylonResult<()>
Starts grabbing using the supplied options.
Sourcepub fn stop_grabbing(&self) -> PylonResult<()>
pub fn stop_grabbing(&self) -> PylonResult<()>
Stops any active grab operation.
Sourcepub fn is_grabbing(&self) -> bool
pub fn is_grabbing(&self) -> bool
Returns true while the camera is actively grabbing.
Sourcepub fn retrieve_result(
&self,
timeout_ms: u32,
grab_result: &mut GrabResult,
timeout_handling: TimeoutHandling,
) -> PylonResult<bool>
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
impl InstantCamera
Sourcepub fn node_map<'a>(&'a self) -> PylonResult<NodeMap<'a>>
pub fn node_map<'a>(&'a self) -> PylonResult<NodeMap<'a>>
Returns the camera node map.
Sourcepub fn tl_node_map<'a>(&'a self) -> PylonResult<NodeMap<'a>>
pub fn tl_node_map<'a>(&'a self) -> PylonResult<NodeMap<'a>>
Returns the transport-layer node map.
Sourcepub fn stream_grabber_node_map<'a>(&'a self) -> PylonResult<NodeMap<'a>>
pub fn stream_grabber_node_map<'a>(&'a self) -> PylonResult<NodeMap<'a>>
Returns the stream-grabber node map.
Sourcepub fn event_grabber_node_map<'a>(&'a self) -> PylonResult<NodeMap<'a>>
pub fn event_grabber_node_map<'a>(&'a self) -> PylonResult<NodeMap<'a>>
Returns the event-grabber node map.
Sourcepub fn instant_camera_node_map<'a>(&'a self) -> PylonResult<NodeMap<'a>>
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
impl Drop for InstantCamera
impl Send for InstantCamera
Auto Trait Implementations§
impl Freeze for InstantCamera
impl RefUnwindSafe for InstantCamera
impl !Sync for InstantCamera
impl Unpin for InstantCamera
impl UnsafeUnpin for InstantCamera
impl UnwindSafe for InstantCamera
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more