//! The Decidable trait.
usecrate::errors::Result;usecrate::{choices::status::Status,ids::Id};/// 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>
pubtraitDecidable{/// Returns the ID of this block's parent.
fnid(&self)-> Id;/// Returns the current status.
fnstatus(&self)-> Status;/// Accepts this element.
/// TODO: use <https://docs.rs/tokio-context/latest/tokio_context>?
fnaccept(&mutself)->Result<()>;/// Rejects this element.
/// TODO: use <https://docs.rs/tokio-context/latest/tokio_context>?
fnreject(&mutself)->Result<()>;}