pub struct EventHandler;Expand description
event handler
Implementations§
Source§impl EventHandler
impl EventHandler
Sourcepub async fn start_event_stream(
client: Arc<Aptos>,
address: String,
event_handle: String,
event_sender: Sender<EventData>,
) -> Result<(), String>
pub async fn start_event_stream( client: Arc<Aptos>, address: String, event_handle: String, event_sender: Sender<EventData>, ) -> Result<(), String>
Real-time monitoring of event streams
Sourcepub async fn start_event_stream_with_tx_info(
client: Arc<Aptos>,
address: String,
event_handle: String,
event_sender: Sender<EventData>,
) -> Result<(), String>
pub async fn start_event_stream_with_tx_info( client: Arc<Aptos>, address: String, event_handle: String, event_sender: Sender<EventData>, ) -> Result<(), String>
Event stream containing transaction information
Auto Trait Implementations§
impl Freeze for EventHandler
impl RefUnwindSafe for EventHandler
impl Send for EventHandler
impl Sync for EventHandler
impl Unpin for EventHandler
impl UnwindSafe for EventHandler
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