pub trait GetRequestContext: Debug + Send + Sync + 'static {
    // Required method
    fn get_req_con(&self) -> Option<&RequestContext>;
}
Expand description

Trick to get the request context from the generic type, and to cast [ConnectionBody] to dyn [Connection] trait object.

Required Methods§

Implementations on Foreign Types§

source§

impl GetRequestContext for Arc<RequestContext>

source§

impl GetRequestContext for ()

Implementors§