pub enum DeviceState {
Active,
Inactive,
}
Expand description
Represents the state of a device. This is a implemented as a custom type, because in the GraphQL schema this is just a string.
This enum is intended to be used with the R3Client::get_devices
and R3Client::get_devices_async
functions.
DeviceState::Active
corresponds to the device being online.DeviceState::Inactive
corresponds to the device being offline.
The online-state of a device is also represented in the online
field of the device. (when querying devices)
Variants§
Trait Implementations§
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