[][src]Trait queen::Hook

pub trait Hook: Send + 'static {
    fn accept(&self, _: &Slot) -> bool { ... }
fn remove(&self, _: &Slot) { ... }
fn recv(&self, _: &Slot, _: &mut Message) -> bool { ... }
fn send(&self, _: &Slot, _: &mut Message) -> bool { ... }
fn auth(&self, _: &Slot, _: &SlotModify, _: &mut Message) -> bool { ... }
fn attach(
        &self,
        _: &Slot,
        _: &mut Message,
        _chan: &str,
        _label: &HashSet<String>
    ) -> bool { ... }
fn detach(
        &self,
        _: &Slot,
        _: &mut Message,
        _chan: &str,
        _label: &HashSet<String>
    ) -> 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 stop(&self, _: &Switch) { ... } }

Provided 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 auth(&self, _: &Slot, _: &SlotModify, _: &mut Message) -> bool

fn attach(
    &self,
    _: &Slot,
    _: &mut Message,
    _chan: &str,
    _label: &HashSet<String>
) -> bool

fn detach(
    &self,
    _: &Slot,
    _: &mut Message,
    _chan: &str,
    _label: &HashSet<String>
) -> 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 stop(&self, _: &Switch)

Loading content...

Implementations on Foreign Types

impl Hook for ()[src]

Loading content...

Implementors

Loading content...