Skip to main content

ResponseSink

Trait ResponseSink 

Source
pub trait ResponseSink: Send + Sync {
    // Required method
    fn send(&self, response: DebugResponse);
}
Expand description

Callback for sending responses to a connected client.

Required Methods§

Source

fn send(&self, response: DebugResponse)

Implementors§

Source§

impl<F: Fn(DebugResponse) + Send + Sync> ResponseSink for F

Blanket impl for closures.