simple trait definition in rust to replace the c_glib C struct interface for service