#[repr(u8)]pub enum OreInstruction {
Reset = 0,
Register = 1,
Mine = 2,
Claim = 3,
Initialize = 100,
UpdateAdmin = 101,
UpdateDifficulty = 102,
}Variants§
Reset = 0
Register = 1
Mine = 2
Claim = 3
Initialize = 100
UpdateAdmin = 101
UpdateDifficulty = 102
Implementations§
Trait Implementations§
Source§impl Clone for OreInstruction
impl Clone for OreInstruction
Source§fn clone(&self) -> OreInstruction
fn clone(&self) -> OreInstruction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OreInstruction
Source§impl Debug for OreInstruction
impl Debug for OreInstruction
impl Eq for OreInstruction
Source§impl PartialEq for OreInstruction
impl PartialEq for OreInstruction
Source§fn eq(&self, other: &OreInstruction) -> bool
fn eq(&self, other: &OreInstruction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OreInstruction
Source§impl TryFrom<u8> for OreInstruction
impl TryFrom<u8> for OreInstruction
Source§type Error = TryFromPrimitiveError<OreInstruction>
type Error = TryFromPrimitiveError<OreInstruction>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for OreInstruction
impl TryFromPrimitive for OreInstruction
const NAME: &'static str = "OreInstruction"
type Primitive = u8
type Error = TryFromPrimitiveError<OreInstruction>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for OreInstruction
impl RefUnwindSafe for OreInstruction
impl Send for OreInstruction
impl Sync for OreInstruction
impl Unpin for OreInstruction
impl UnsafeUnpin for OreInstruction
impl UnwindSafe for OreInstruction
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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