pub trait OrderingCandidate:
Send
+ Sync
+ 'static {
// Required methods
fn register_subsystem(
&self,
subsystem: SubsystemId,
after: Option<TxId>,
handler: Arc<dyn TestSubsystem>,
) -> Result<(), String>;
fn submit_txn(&self, transaction: &[u8]) -> Result<(), SubmitError>;
fn submit_local_txn(
&self,
timestamp: u64,
creator: [u8; 32],
subsystem: SubsystemId,
payload: &[u8],
signer: TestSigner,
queue_propagation: TestQueuePropagation,
) -> Result<Vec<u8>, String>;
fn contains(&self, id: TxId) -> bool;
fn tip(&self) -> Option<TxId>;
fn between_txids(
&self,
older: TxId,
newer: TxId,
) -> Result<Vec<TxId>, String>;
fn get_txn(&self, id: TxId) -> Result<Option<Vec<u8>>, String>;
}Required Methods§
fn register_subsystem( &self, subsystem: SubsystemId, after: Option<TxId>, handler: Arc<dyn TestSubsystem>, ) -> Result<(), String>
fn submit_txn(&self, transaction: &[u8]) -> Result<(), SubmitError>
fn submit_local_txn( &self, timestamp: u64, creator: [u8; 32], subsystem: SubsystemId, payload: &[u8], signer: TestSigner, queue_propagation: TestQueuePropagation, ) -> Result<Vec<u8>, String>
fn contains(&self, id: TxId) -> bool
fn tip(&self) -> Option<TxId>
fn between_txids(&self, older: TxId, newer: TxId) -> Result<Vec<TxId>, String>
fn get_txn(&self, id: TxId) -> Result<Option<Vec<u8>>, String>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".