Enum ascom_alpaca::api::CameraState
source · #[repr(i32)]pub enum CameraState {
Idle,
Waiting,
Exposing,
Reading,
Download,
Error,
}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<CameraState> for CameraState
impl PartialEq<CameraState> for CameraState
source§fn eq(&self, other: &CameraState) -> bool
fn eq(&self, other: &CameraState) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for CameraState
impl Serialize for CameraState
source§impl TryFrom<i32> for CameraState
impl TryFrom<i32> for CameraState
§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
impl Copy for CameraState
impl Eq for CameraState
impl StructuralEq for CameraState
impl StructuralPartialEq for CameraState
Auto Trait Implementations§
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.