Skip to main content

Service

Trait Service 

Source
pub trait Service:
    Send
    + Sync
    + 'static {
    type Request: Send + 'static;
    type Response: Send + 'static;
}
Expand description

One strongly typed asynchronous Service operation contract.

This type contains no implementation behavior. Callers depend on a public contract type implementing this trait; a private implementation separately implements ServiceHandler<Self>.

Required Associated Types§

Source

type Request: Send + 'static

Source

type Response: Send + 'static

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§