pub enum UPSState {
Connected(UPSStateParameters),
Connecting,
Disconnecting,
Disconnected,
}
Variants§
Connected(UPSStateParameters)
UPSMON PRO is connected to UPS. UPS state is known
Connecting
UPSMON PRO is trying to establish connection to UPS. UPS state is unknown.
Disconnecting
UPSMON PRO is in the process of connection termination. UPS state is unknown.
Disconnected
UPSMON PRO is not connected to UPS. UPS state is unknown.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UPSState
impl RefUnwindSafe for UPSState
impl Send for UPSState
impl Sync for UPSState
impl Unpin for UPSState
impl UnwindSafe for UPSState
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