mirror of https://github.com/rwf2/Rocket.git
c3520fb4a1
This modifies the 'IoHandler::io()' method so that it takes a 'Pin<Box<Self>>', allowing handlers to move internally and assume that the data is pinned. The change is then used in the 'ws' contrib crate to allow 'FnOnce' handlers instead of 'FnMut'. The net effect is that streams, such as those crated by 'Stream!', are now allowed to move internally. |
||
---|---|---|
.. | ||
codegen | ||
http | ||
lib |