Skip to main content

RequestContextManager

Trait RequestContextManager 

Source
pub trait RequestContextManager:
    Send
    + Sync
    + Debug {
    // Required methods
    fn set_context(
        &self,
        request_id: &str,
        user_id: Option<&str>,
        session_id: Option<&str>,
    );
    fn clear_context(&self);
}
Expand description

Port (trait) for request context management

Required Methods§

Source

fn set_context( &self, request_id: &str, user_id: Option<&str>, session_id: Option<&str>, )

Source

fn clear_context(&self)

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§