Skip to main content

FrontendChannelImpl

Trait FrontendChannelImpl 

Source
pub trait FrontendChannelImpl {
    // Required methods
    fn send_protocol_response(&mut self, call_id: i32, message: Serializable);
    fn send_protocol_notification(&mut self, message: Serializable);
    fn fall_through(&mut self, call_id: i32, method: &[u8], message: &[u8]);
    fn flush_protocol_notifications(&mut self);
}
Expand description

Trait for sending protocol responses and notifications to clients.

Required Methods§

Source

fn send_protocol_response(&mut self, call_id: i32, message: Serializable)

Send a response to a protocol request.

Source

fn send_protocol_notification(&mut self, message: Serializable)

Send a notification (no call_id).

Source

fn fall_through(&mut self, call_id: i32, method: &[u8], message: &[u8])

Indicate that the message should be handled by another layer.

Source

fn flush_protocol_notifications(&mut self)

Flush any queued notifications.

Implementors§