Trait avalanche_types::rpcchainvm::concensus::snowman::Decidable
source · [−]pub trait Decidable {
fn id<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Id> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn status<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Status> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn accept<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn reject<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
ref. https://pkg.go.dev/github.com/ava-labs/avalanchego/snow/choices#Decidable
Required Methods
sourcefn id<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Id> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn id<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Id> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Returns the ID of this block’s parent.
sourcefn status<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Status> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn status<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Status> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Returns the current status.