pub trait RequestContext {
type ContextStack: ContextStack;
type Name: ?Sized;
// Required methods
fn get_context_stack(
&self,
service_name: &'static Self::Name,
fn_name: &'static Self::Name,
) -> Result<Self::ContextStack, Error>;
fn set_user_exception_header(
&self,
ex_type: &str,
ex_reason: &str,
) -> Result<(), Error>;
}Required Associated Types§
type ContextStack: ContextStack
type Name: ?Sized
Required Methods§
fn get_context_stack( &self, service_name: &'static Self::Name, fn_name: &'static Self::Name, ) -> Result<Self::ContextStack, Error>
fn set_user_exception_header( &self, ex_type: &str, ex_reason: &str, ) -> Result<(), Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".