Enum ascom_alpaca::api::CoverStatus
source · #[repr(i32)]pub enum CoverStatus {
NotPresent,
Closed,
Moving,
Open,
Unknown,
Error,
}Available on crate feature
covercalibrator only.Expand description
Returned side of pier
Variants§
NotPresent
This device does not have a cover that can be closed independently.
Closed
The cover is closed.
Moving
The cover is moving to a new position.
Open
The cover is open.
Unknown
The state of the cover is unknown.
Error
The device encountered an error when changing state.
Trait Implementations§
source§impl Clone for CoverStatus
impl Clone for CoverStatus
source§fn clone(&self) -> CoverStatus
fn clone(&self) -> CoverStatus
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 CoverStatus
impl Debug for CoverStatus
source§impl<'de> Deserialize<'de> for CoverStatus
impl<'de> Deserialize<'de> for CoverStatus
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<CoverStatus> for i32
impl From<CoverStatus> for i32
source§fn from(enum_value: CoverStatus) -> Self
fn from(enum_value: CoverStatus) -> Self
Converts to this type from the input type.
source§impl PartialEq<CoverStatus> for CoverStatus
impl PartialEq<CoverStatus> for CoverStatus
source§fn eq(&self, other: &CoverStatus) -> bool
fn eq(&self, other: &CoverStatus) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for CoverStatus
impl Serialize for CoverStatus
source§impl TryFrom<i32> for CoverStatus
impl TryFrom<i32> for CoverStatus
§type Error = TryFromPrimitiveError<CoverStatus>
type Error = TryFromPrimitiveError<CoverStatus>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for CoverStatus
impl TryFromPrimitive for CoverStatus
impl Copy for CoverStatus
impl Eq for CoverStatus
impl StructuralEq for CoverStatus
impl StructuralPartialEq for CoverStatus
Auto Trait Implementations§
impl RefUnwindSafe for CoverStatus
impl Send for CoverStatus
impl Sync for CoverStatus
impl Unpin for CoverStatus
impl UnwindSafe for CoverStatus
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.