pub trait Hooks: Send + Sync {
// Provided methods
fn on_people(&self, _room: &ViewRoom) { ... }
fn on_reload(&self, _room: &ViewRoom) { ... }
fn on_saved(&self, _room: &ViewRoom) { ... }
fn on_closed(&self, _room: &ViewRoom) { ... }
}Expand description
File room hooks. Every method defaults to a no-op, like the optional members
of the TypeScript Hooks object.
Provided Methods§
Sourcefn on_people(&self, _room: &ViewRoom)
fn on_people(&self, _room: &ViewRoom)
Someone joined or left, or moved their pointer or selection.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".