Skip to main content

OnQueueChanged

Trait OnQueueChanged 

Source
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§

Source

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".

Implementations on Foreign Types§

Source§

impl<Id> OnQueueChanged<Id> for ()

Implementors§