pub struct DexEventMonitor { /* private fields */ }Expand description
dex event monitor
Implementations§
Source§impl DexEventMonitor
impl DexEventMonitor
pub fn new() -> Self
pub async fn start_monitoring_all_dexes( &mut self, client: Arc<Aptos>, ) -> Result<(), String>
pub fn subscribe_to_dex(&self, dex_name: &str) -> Option<Receiver<EventData>>
pub fn get_all_receivers(&self) -> Vec<(String, Receiver<EventData>)>
pub fn publish_to_dex( &self, dex_name: &str, event: EventData, ) -> Result<(), String>
Auto Trait Implementations§
impl Freeze for DexEventMonitor
impl !RefUnwindSafe for DexEventMonitor
impl Send for DexEventMonitor
impl Sync for DexEventMonitor
impl Unpin for DexEventMonitor
impl !UnwindSafe for DexEventMonitor
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more