pub trait RequestDelegator<C>where
C: CommunicableTypes,
C::Resp: From<GenericWebSocketError>,{
type GlobalContext;
type SessionContext;
// Required method
fn delegate(
item: RawWebSocketItem<C::Req, C::Resp>,
global_context: Arc<Self::GlobalContext>,
session_context: Arc<RwLock<Self::SessionContext>>,
) -> impl Future<Output = Result<(), RespondToItemError>> + Send;
}Required Associated Types§
type GlobalContext
type SessionContext
Required Methods§
fn delegate( item: RawWebSocketItem<C::Req, C::Resp>, global_context: Arc<Self::GlobalContext>, session_context: Arc<RwLock<Self::SessionContext>>, ) -> impl Future<Output = Result<(), RespondToItemError>> + Send
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.