Trait queen::socket::Hook[][src]

pub trait Hook: Send + 'static {
Show 18 methods fn accept(&self, _: &Slot) -> bool { ... }
fn remove(&self, _: &Slot) { ... }
fn recv(&self, _: &Slot, _: &mut Message) -> bool { ... }
fn send(&self, _: &Slot, _: &mut Message) -> bool { ... }
fn attach(&self, _: &Slot, _: &mut Message, _chan: &str) -> bool { ... }
fn detach(&self, _: &Slot, _: &mut Message, _chan: &str) -> bool { ... }
fn bind(&self, _: &Slot, _: &mut Message, _slot_id: MessageId) -> bool { ... }
fn unbind(&self, _: &Slot, _: &mut Message, _slot_id: MessageId) -> bool { ... }
fn join(&self, _: &Slot, _: &mut Message) -> bool { ... }
fn leave(&self, _: &Slot, _: &mut Message) -> bool { ... }
fn ping(&self, _: &Slot, _: &mut Message) { ... }
fn emit(&self, _: &Slot, _: &mut Message) -> bool { ... }
fn push(&self, _: &Slot, _: &mut Message) -> bool { ... }
fn kill(&self, _: &Slot, _: &mut Message) -> bool { ... }
fn query(&self, _: &Switch, _token: usize, _: &mut Message) { ... }
fn custom(&self, _: &Switch, _token: usize, _: &mut Message) { ... }
fn ctrl(&self, _: &mut Switch, _token: usize, _: &mut Message) { ... }
fn stop(&self, _: &Switch) { ... }
}

Provided methods

Implementations on Foreign Types

Implementors