pub trait Listen: Unpin {
// Required method
fn poll_next(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<ListenEvent, Box<dyn Error + Sync + Send>>>;
}Required Methods§
fn poll_next( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<ListenEvent, Box<dyn Error + Sync + Send>>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".