generic_camera::server

Enum GenSrvCmd

source
pub enum GenSrvCmd {
Show 16 variants Vendor, CameraReady, CameraName, Info, ListProperties, GetProperty(GenCamCtrl), SetProperty(GenCamCtrl, PropertyValue, bool), CancelCapture, IsCapturing, Capture, StartExposure, DownloadImage, ImageReady, CameraState, SetRoi(GenCamRoi), GetRoi,
}
Available on crate feature server only.
Expand description

The possible calls that can be made to a generic camera server.

Variants§

§

Vendor

Get the vendor of the camera. Calls the GenCam::vendor method.

§

CameraReady

Check if the camera is ready. Calls the GenCam::camera_ready method.

§

CameraName

Get the name of the camera. Calls the GenCam::camera_name method.

§

Info

Get the camera info. Calls the GenCam::info method.

§

ListProperties

List all properties available on the camera. Calls the GenCam::list_properties method.

§

GetProperty(GenCamCtrl)

Get a specific property from the camera. Calls the GenCam::get_property method.

§

SetProperty(GenCamCtrl, PropertyValue, bool)

Set a specific property on the camera. Calls the GenCam::set_property method.

§

CancelCapture

Cancel a capture in progress. Calls the GenCam::cancel_capture method.

§

IsCapturing

Check if the camera is currently capturing. Calls the GenCam::is_capturing method.

§

Capture

Capture an image from the camera. Calls the GenCam::capture method.

§

StartExposure

Start an exposure on the camera. Calls the GenCam::start_exposure method.

§

DownloadImage

Download an image from the camera. Calls the GenCam::download_image method.

§

ImageReady

Check if an image is ready to be downloaded. Calls the GenCam::image_ready method.

§

CameraState

Get the current state of the camera. Calls the GenCam::camera_state method.

§

SetRoi(GenCamRoi)

Set the region of interest on the camera. Calls the GenCam::set_roi method.

§

GetRoi

Get the current region of interest. Calls the GenCam::get_roi method.

Trait Implementations§

source§

impl Clone for GenSrvCmd

source§

fn clone(&self) -> GenSrvCmd

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for GenSrvCmd

source§

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

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

impl<'de> Deserialize<'de> for GenSrvCmd

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for GenSrvCmd

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

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> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. 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<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,