Trait fidl::endpoints::ServiceRequest
source · 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§
sourcetype Service: ServiceMarker<Request = Self>
type Service: ServiceMarker<Request = Self>
The FIDL service for which this request is destined.
Required Methods§
sourcefn dispatch(name: &str, channel: AsyncChannel) -> Self
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.
sourcefn member_names() -> &'static [&'static str]
fn member_names() -> &'static [&'static str]
Returns an array of the service members’ names.
Object Safety§
This trait is not object safe.