Simple impl of pubsub in rust