Enum tea_sdk::tapp::machine::MiningStatus
pub enum MiningStatus {
Active,
Offline,
ScheduleDown,
}
Expand description
Miner machine status enum. Active is working, Offline means not work and out of network. ScheduleDown means not work now, but still in network, use to upgrade miner or some schedule stuff.
Variants§
Trait Implementations§
§impl Clone for MiningStatus
impl Clone for MiningStatus
§fn clone(&self) -> MiningStatus
fn clone(&self) -> MiningStatus
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 more§impl Debug for MiningStatus
impl Debug for MiningStatus
§impl Default for MiningStatus
impl Default for MiningStatus
§fn default() -> MiningStatus
fn default() -> MiningStatus
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for MiningStatus
impl<'de> Deserialize<'de> for MiningStatus
§fn deserialize<__D>(
__deserializer: __D
) -> Result<MiningStatus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<MiningStatus, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for MiningStatus
impl Display for MiningStatus
§impl FromStr for MiningStatus
impl FromStr for MiningStatus
§type Err = RuntimeTappError
type Err = RuntimeTappError
The associated error which can be returned from parsing.
§fn from_str(s: &str) -> Result<MiningStatus, <MiningStatus as FromStr>::Err>
fn from_str(s: &str) -> Result<MiningStatus, <MiningStatus as FromStr>::Err>
Parses a string
s
to return a value of this type. Read more§impl PartialEq for MiningStatus
impl PartialEq for MiningStatus
§fn eq(&self, other: &MiningStatus) -> bool
fn eq(&self, other: &MiningStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for MiningStatus
impl Serialize for MiningStatus
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for MiningStatus
impl Eq for MiningStatus
impl StructuralEq for MiningStatus
impl StructuralPartialEq for MiningStatus
Auto Trait Implementations§
impl RefUnwindSafe for MiningStatus
impl Send for MiningStatus
impl Sync for MiningStatus
impl Unpin for MiningStatus
impl UnwindSafe for MiningStatus
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.