pub struct HandlerArgs { /* private fields */ }
Expand description
Arguments passed to a handler.
Implementations§
Source§impl HandlerArgs
impl HandlerArgs
Sourcepub const fn new(ctx: HandlerCtx, req: Request) -> Self
pub const fn new(ctx: HandlerCtx, req: Request) -> Self
Create new handler arguments.
Sourcepub const fn ctx(&self) -> &HandlerCtx
pub const fn ctx(&self) -> &HandlerCtx
Get a reference to the handler context.
Trait Implementations§
Source§impl Clone for HandlerArgs
impl Clone for HandlerArgs
Source§fn clone(&self) -> HandlerArgs
fn clone(&self) -> HandlerArgs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HandlerArgs
impl Debug for HandlerArgs
Source§impl Service<HandlerArgs> for &Router<()>
impl Service<HandlerArgs> for &Router<()>
Source§impl Service<HandlerArgs> for Router<()>
impl Service<HandlerArgs> for Router<()>
Auto Trait Implementations§
impl !Freeze for HandlerArgs
impl RefUnwindSafe for HandlerArgs
impl Send for HandlerArgs
impl Sync for HandlerArgs
impl Unpin for HandlerArgs
impl UnwindSafe for HandlerArgs
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