Skip to main content

Service

Trait Service 

Source
pub trait Service:
    Any
    + Send
    + Sync { }
Expand description

Marker bound for services stored in Ctx: any 'static Send + Sync type (trait object or concrete) can occupy a service key.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T: ?Sized + Any + Send + Sync> Service for T