#[repr(i32)]pub enum ConsumerPhase {
Unspecified = 0,
Registered = 1,
Initialized = 2,
Launched = 3,
Stopped = 4,
Deleted = 5,
}
Expand description
ConsumerPhase indicates the phases of a consumer chain according to ADR 019
Variants§
Unspecified = 0
UNSPECIFIED defines an empty phase.
Registered = 1
REGISTERED defines the phase in which a consumer chain has been assigned a unique consumer id. A chain in this phase cannot yet launch.
Initialized = 2
INITIALIZED defines the phase in which a consumer chain has set all the needed parameters to launch but
has not yet launched (e.g., because the spawnTime
of the consumer chain has not yet been reached).
Launched = 3
LAUNCHED defines the phase in which a consumer chain is running and consuming a subset of the validator set of the provider.
Stopped = 4
STOPPED defines the phase in which a previously-launched chain has stopped.
Deleted = 5
DELETED defines the phase in which the state of a stopped chain has been deleted.
Implementations§
Source§impl ConsumerPhase
impl ConsumerPhase
Source§impl ConsumerPhase
impl ConsumerPhase
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for ConsumerPhase
impl Clone for ConsumerPhase
Source§fn clone(&self) -> ConsumerPhase
fn clone(&self) -> ConsumerPhase
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ConsumerPhase
impl Debug for ConsumerPhase
Source§impl Default for ConsumerPhase
impl Default for ConsumerPhase
Source§fn default() -> ConsumerPhase
fn default() -> ConsumerPhase
Source§impl From<ConsumerPhase> for i32
impl From<ConsumerPhase> for i32
Source§fn from(value: ConsumerPhase) -> i32
fn from(value: ConsumerPhase) -> i32
Source§impl Hash for ConsumerPhase
impl Hash for ConsumerPhase
Source§impl Ord for ConsumerPhase
impl Ord for ConsumerPhase
Source§fn cmp(&self, other: &ConsumerPhase) -> Ordering
fn cmp(&self, other: &ConsumerPhase) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ConsumerPhase
impl PartialEq for ConsumerPhase
Source§impl PartialOrd for ConsumerPhase
impl PartialOrd for ConsumerPhase
Source§impl TryFrom<i32> for ConsumerPhase
impl TryFrom<i32> for ConsumerPhase
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
Source§fn try_from(value: i32) -> Result<ConsumerPhase, UnknownEnumValue>
fn try_from(value: i32) -> Result<ConsumerPhase, UnknownEnumValue>
impl Copy for ConsumerPhase
impl Eq for ConsumerPhase
impl StructuralPartialEq for ConsumerPhase
Auto Trait Implementations§
impl Freeze for ConsumerPhase
impl RefUnwindSafe for ConsumerPhase
impl Send for ConsumerPhase
impl Sync for ConsumerPhase
impl Unpin for ConsumerPhase
impl UnwindSafe for ConsumerPhase
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request