use std::sync::Arc; use crate::exchange::core::ExchangeCore; pub(crate) trait Contract: Send + Sync + std::fmt::Debug { fn id(&self) -> usize; fn exchange_core(&self) -> &Arc<ExchangeCore>; }