pub trait AcceptsSessionService {
// Required methods
fn add_first_session_service<T: SessionService + Send + Sync + 'static>(
&mut self,
item: T,
);
fn add_last_session_service<T: SessionService + Send + Sync + 'static>(
&mut self,
item: T,
);
fn wrap_session_service<T, F>(&mut self, wrap: F)
where T: SessionService + Send + Sync + 'static,
F: FnOnce(Box<dyn SessionService + Send + Sync>) -> T;
}
Required Methods§
fn add_first_session_service<T: SessionService + Send + Sync + 'static>( &mut self, item: T, )
fn add_last_session_service<T: SessionService + Send + Sync + 'static>( &mut self, item: T, )
fn wrap_session_service<T, F>(&mut self, wrap: F)where
T: SessionService + Send + Sync + 'static,
F: FnOnce(Box<dyn SessionService + Send + Sync>) -> T,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.