Trait axum::extract::ws::OnFailedUpgrade

source ·
pub trait OnFailedUpgrade: Send + 'static {
    // Required method
    fn call(self, error: Error);
}
Expand description

What to do when a connection upgrade fails.

See WebSocketUpgrade::on_failed_upgrade for more details.

Required Methods§

source

fn call(self, error: Error)

Call the callback.

Implementors§