pub trait ServiceRequest: Sized + Send + Sync {
    type Service: ServiceMarker<Request = Self>;

    // Required methods
    fn dispatch(name: &str, channel: AsyncChannel) -> Self;
    fn member_names() -> &'static [&'static str];
Expand description

A request to initiate a connection to a FIDL service.

Required Associated Types§


type Service: ServiceMarker<Request = Self>

The FIDL service for which this request is destined.

Required Methods§


fn dispatch(name: &str, channel: AsyncChannel) -> Self

Dispatches a connection attempt to this FIDL service’s member protocol identified by name, producing an instance of this trait.


fn member_names() -> &'static [&'static str]

Returns an array of the service members’ names.

Object Safety§

This trait is not object safe.