pub enum GenSrvValue {
Unit,
Info(GenCamDescriptor),
Property {
value: PropertyValue,
auto: Option<bool>,
},
Image(GenericImageOwned),
Roi(GenCamRoi),
State(GenCamState),
PropertyList(HashMap<GenCamCtrl, Property>),
}
Available on crate feature
server
only.Expand description
The Ok variant of a generic camera server call.
Variants§
Unit
No return value.
Info(GenCamDescriptor)
Camera information in a GenCamDescriptor
.
Property
A single PropertyValue
.
Fields
§
value: PropertyValue
The value of the property.
Image(GenericImageOwned)
A captured image from the camera.
Roi(GenCamRoi)
Region of interest defined on the camera.
State(GenCamState)
The current state of the camera.
PropertyList(HashMap<GenCamCtrl, Property>)
A list of properties available on the camera.
Trait Implementations§
Source§impl Clone for GenSrvValue
impl Clone for GenSrvValue
Source§fn clone(&self) -> GenSrvValue
fn clone(&self) -> GenSrvValue
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GenSrvValue
impl Debug for GenSrvValue
Source§impl<'de> Deserialize<'de> for GenSrvValue
impl<'de> Deserialize<'de> for GenSrvValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 From<&GenCamDescriptor> for GenSrvValue
impl From<&GenCamDescriptor> for GenSrvValue
Source§fn from(info: &GenCamDescriptor) -> Self
fn from(info: &GenCamDescriptor) -> Self
Converts to this type from the input type.
Source§impl From<(&PropertyValue, bool)> for GenSrvValue
impl From<(&PropertyValue, bool)> for GenSrvValue
Source§fn from(value: (&PropertyValue, bool)) -> Self
fn from(value: (&PropertyValue, bool)) -> Self
Converts to this type from the input type.
Source§impl From<()> for GenSrvValue
impl From<()> for GenSrvValue
Source§impl From<(PropertyValue, bool)> for GenSrvValue
impl From<(PropertyValue, bool)> for GenSrvValue
Source§fn from(value: (PropertyValue, bool)) -> Self
fn from(value: (PropertyValue, bool)) -> Self
Converts to this type from the input type.
Source§impl From<GenCamDescriptor> for GenSrvValue
impl From<GenCamDescriptor> for GenSrvValue
Source§fn from(info: GenCamDescriptor) -> Self
fn from(info: GenCamDescriptor) -> Self
Converts to this type from the input type.
Source§impl From<GenCamRoi> for GenSrvValue
impl From<GenCamRoi> for GenSrvValue
Source§impl From<GenCamState> for GenSrvValue
impl From<GenCamState> for GenSrvValue
Source§fn from(state: GenCamState) -> Self
fn from(state: GenCamState) -> Self
Converts to this type from the input type.
Source§impl From<GenericImageOwned> for GenSrvValue
impl From<GenericImageOwned> for GenSrvValue
Source§fn from(image: GenericImageOwned) -> Self
fn from(image: GenericImageOwned) -> Self
Converts to this type from the input type.
Source§impl From<HashMap<GenCamCtrl, Property>> for GenSrvValue
impl From<HashMap<GenCamCtrl, Property>> for GenSrvValue
Source§impl From<PropertyValue> for GenSrvValue
impl From<PropertyValue> for GenSrvValue
Source§fn from(value: PropertyValue) -> Self
fn from(value: PropertyValue) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GenSrvValue
impl RefUnwindSafe for GenSrvValue
impl Send for GenSrvValue
impl Sync for GenSrvValue
impl Unpin for GenSrvValue
impl UnwindSafe for GenSrvValue
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