#[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
Camera state.
Variants§
Idle = 0
At idle state, available to start exposure.
Waiting = 1
Exposure started but waiting (for shutter, trigger, filter wheel, etc.).
Exposing = 2
Exposure currently in progress.
Reading = 3
Sensor array is being read out (digitized).
Download = 4
Downloading data to host.
Error = 5
Camera error condition serious enough to prevent further operations.
Trait Implementations§
Source§impl Clone for CameraState
impl Clone for CameraState
Source§fn clone(&self) -> CameraState
fn clone(&self) -> CameraState
Returns a duplicate 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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more