pub trait NominalStreamListener: Send + Sync + Debug { // Required method fn on_error(&self, message: &str, error: &dyn Error); }