Trait avalanche_types::choices::decidable::Decidable
source · pub trait Decidable {
// Required methods
fn id(&self) -> Id;
fn status(&self) -> Status;
fn accept(&mut self) -> Result<()>;
fn reject(&mut self) -> Result<()>;
}
Expand description
Represents an element that can be decided. Decidable objects are transactions, blocks, or vertices. ref. https://pkg.go.dev/github.com/ava-labs/avalanchego/snow/choices#Decidable