pub trait OnQueueChanged<Id> {
// Required method
fn on_queue_changed(id: Id, fp: QueueFootprint);
}
Expand description
Handler code for when the items in a queue change.
Required Methods§
Sourcefn on_queue_changed(id: Id, fp: QueueFootprint)
fn on_queue_changed(id: Id, fp: QueueFootprint)
Note that the queue id
now has item_count
items in it, taking up items_size
bytes.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.