fidl_next::bind

Trait ServerProtocol

Source
pub trait ServerProtocol<T: Transport, H>: Sized {
    // Required methods
    fn on_one_way(
        handler: &mut H,
        server: &ServerSender<T, Self>,
        ordinal: u64,
        buffer: T::RecvBuffer,
    );
    fn on_two_way(
        handler: &mut H,
        server: &ServerSender<T, Self>,
        ordinal: u64,
        buffer: T::RecvBuffer,
        responder: Responder,
    );
}
Expand description

A protocol which supports servers.

Required Methods§

Source

fn on_one_way( handler: &mut H, server: &ServerSender<T, Self>, ordinal: u64, buffer: T::RecvBuffer, )

Handles a received server one-way message with the given handler.

Source

fn on_two_way( handler: &mut H, server: &ServerSender<T, Self>, ordinal: u64, buffer: T::RecvBuffer, responder: Responder, )

Handles a received server two-way message with the given handler.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§