Skip to main content

ServiceObject

Trait ServiceObject 

Source
pub trait ServiceObject: Send + 'static {
    // Required method
    fn run(&mut self, ctx: &ServiceContext<'_>);
}

Required Methods§

Source

fn run(&mut self, ctx: &ServiceContext<'_>)

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<_ErasedPtr> ServiceObject for ServiceObject_TO<_ErasedPtr>
where Self: Send + 'static, _ErasedPtr: AsMutPtr<PtrTarget = ()>,