Trait tsukuyomi::input::upgrade::OnUpgrade[][src]

pub trait OnUpgrade: Send + 'static {
    fn on_upgrade(
        self,
        io: Upgraded,
        cx: UpgradeContext
    ) -> Box<Future<Item = (), Error = ()> + Send + 'static>; }

A trait representing a function called at performing the protocol upgrade.

Required Methods

Important traits for Box<R>

Creates a task for processing the upgraded protocol from the specified context.

Implementors