Skip to main content

Subscribe

Trait Subscribe 

Source
pub trait Subscribe<K> {
    // Required method
    fn subscribe(&mut self, subs_key: K, subs_id: SeqID);
}
Expand description

Subscribe using a key of type K

Required Methods§

Source

fn subscribe(&mut self, subs_key: K, subs_id: SeqID)

Register subscriber with the ID subs_id as having interest to the key K.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§