pub struct SocketIoUpgrade { /* private fields */ }Expand description
Extractor for establishing SocketIo connections.
Implementations§
Source§impl SocketIoUpgrade
impl SocketIoUpgrade
Sourcepub fn on_upgrade<C, Fut>(self, buffer: usize, callback: C) -> Response
pub fn on_upgrade<C, Fut>(self, buffer: usize, callback: C) -> Response
Finalize upgrading the connection and call the provided callback with SocketIo instance.
§Arguments
buffer- The size of the buffer to be used in theSocketIoinstance.callback- A function that will be called with the upgradedSocketIoinstance.
Trait Implementations§
Source§impl<S> FromRequestParts<S> for SocketIoUpgrade
impl<S> FromRequestParts<S> for SocketIoUpgrade
Auto Trait Implementations§
impl !Freeze for SocketIoUpgrade
impl RefUnwindSafe for SocketIoUpgrade
impl Send for SocketIoUpgrade
impl Sync for SocketIoUpgrade
impl Unpin for SocketIoUpgrade
impl UnwindSafe for SocketIoUpgrade
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
Source§impl<S, T> FromRequest<S, ViaParts> for T
impl<S, T> FromRequest<S, ViaParts> for T
Source§type Rejection = <T as FromRequestParts<S>>::Rejection
type Rejection = <T as FromRequestParts<S>>::Rejection
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.