Skip to main content

ServiceMarker

Trait ServiceMarker 

Source
pub trait ServiceMarker:
    Sized
    + Clone
    + Send
    + Sync
    + 'static {
    type Proxy: ServiceProxy<Service = Self>;
    type Request: ServiceRequest<Service = Self>;

    const SERVICE_NAME: &'static str;
}
Expand description

A marker for a particular FIDL service.

Required Associated Constants§

Source

const SERVICE_NAME: &'static str

The name of the service. Used for service lookup and discovery.

Required Associated Types§

Source

type Proxy: ServiceProxy<Service = Self>

The type of the proxy object upon which calls are made to a remote FIDL service.

Source

type Request: ServiceRequest<Service = Self>

The request type for this particular FIDL service.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§