#[repr(i32)]pub enum CameraState {
Idle = 0,
Waiting = 1,
Exposing = 2,
Reading = 3,
Download = 4,
Error = 5,
}
Available on crate feature
camera
only.Expand description
Returned camera state
Variants§
Trait Implementations§
Source§impl Clone for CameraState
impl Clone for CameraState
Source§fn clone(&self) -> CameraState
fn clone(&self) -> CameraState
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 CameraState
impl Debug for CameraState
Source§impl<'de> Deserialize<'de> for CameraState
impl<'de> Deserialize<'de> for CameraState
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<CameraState> for i32
impl From<CameraState> for i32
Source§fn from(enum_value: CameraState) -> Self
fn from(enum_value: CameraState) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CameraState
impl PartialEq for CameraState
Source§impl Serialize for CameraState
impl Serialize for CameraState
Source§impl TryFrom<i32> for CameraState
impl TryFrom<i32> for CameraState
Source§type Error = TryFromPrimitiveError<CameraState>
type Error = TryFromPrimitiveError<CameraState>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for CameraState
impl TryFromPrimitive for CameraState
const NAME: &'static str = "CameraState"
type Primitive = i32
type Error = TryFromPrimitiveError<CameraState>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for CameraState
impl Eq for CameraState
impl StructuralPartialEq for CameraState
Auto Trait Implementations§
impl Freeze for CameraState
impl RefUnwindSafe for CameraState
impl Send for CameraState
impl Sync for CameraState
impl Unpin for CameraState
impl UnwindSafe for CameraState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.