I'm no kind of experienced rust programmer, but I was surprised that common functionality (available, push, try_push) wasn't factored into traits (maybe QueueStats, LimitedQueue and UnlimitedQueue) to allow easily writing generic functions to e.g. get the current queue stats.
(The actual usecase I had was await_empty which I realise will be fixed when #4 lands.)
If this makes sense and you'd merge the PR I'll try to find time to factor the interface out.
I'm no kind of experienced rust programmer, but I was surprised that common functionality (
available,push,try_push) wasn't factored into traits (maybeQueueStats,LimitedQueueandUnlimitedQueue) to allow easily writing generic functions to e.g. get the current queue stats.(The actual usecase I had was
await_emptywhich I realise will be fixed when #4 lands.)If this makes sense and you'd merge the PR I'll try to find time to factor the interface out.