pub struct GatewayHandler { /* private fields */ }
Expand description
Handler for a single gateway instance
Implementations§
Source§impl GatewayHandler
impl GatewayHandler
pub fn new(config: GatewayConfig) -> Self
pub async fn handle_request(&self, req: Request) -> Response
Auto Trait Implementations§
impl Freeze for GatewayHandler
impl RefUnwindSafe for GatewayHandler
impl Send for GatewayHandler
impl Sync for GatewayHandler
impl Unpin for GatewayHandler
impl UnwindSafe for GatewayHandler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more