pub struct DeviceState {
pub camera_state: Option<CameraState>,
pub ccd_temperature: Option<f64>,
pub cooler_power: Option<f64>,
pub heat_sink_temperature: Option<f64>,
pub image_ready: Option<bool>,
pub is_pulse_guiding: Option<bool>,
pub percent_completed: Option<i32>,
}
Available on crate feature
camera
only.Expand description
An object representing all operational properties of the device.
Fields§
§camera_state: Option<CameraState>
Result of Camera::camera_state
.
ccd_temperature: Option<f64>
Result of Camera::ccd_temperature
.
cooler_power: Option<f64>
Result of Camera::cooler_power
.
heat_sink_temperature: Option<f64>
Result of Camera::heat_sink_temperature
.
image_ready: Option<bool>
Result of Camera::image_ready
.
is_pulse_guiding: Option<bool>
Result of Camera::is_pulse_guiding
.
percent_completed: Option<i32>
Result of Camera::percent_completed
.
Trait Implementations§
Source§impl Clone for DeviceState
impl Clone for DeviceState
Source§fn clone(&self) -> DeviceState
fn clone(&self) -> DeviceState
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 DeviceState
impl Debug for DeviceState
Source§impl Default for DeviceState
impl Default for DeviceState
Source§fn default() -> DeviceState
fn default() -> DeviceState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeviceState
impl<'de> Deserialize<'de> for DeviceState
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 Serialize for DeviceState
impl Serialize for DeviceState
impl Copy for DeviceState
Auto Trait Implementations§
impl Freeze for DeviceState
impl RefUnwindSafe for DeviceState
impl Send for DeviceState
impl Sync for DeviceState
impl Unpin for DeviceState
impl UnwindSafe for DeviceState
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<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