pub struct Accept;Trait Implementations§
Source§impl Callback for Accept
impl Callback for Accept
Source§fn on_request(
self,
request: &Request,
response: Response,
) -> Result<Response, ErrorResponse>
fn on_request( self, request: &Request, response: Response, ) -> Result<Response, ErrorResponse>
Called whenever the server read the request from the client and is ready to reply to it.
May return additional reply headers.
Returning an error resulting in rejecting the incoming connection.
impl Copy for Accept
Auto Trait Implementations§
impl Freeze for Accept
impl RefUnwindSafe for Accept
impl Send for Accept
impl Sync for Accept
impl Unpin for Accept
impl UnwindSafe for Accept
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