pub struct WsConnectionParams {
pub upgrade: WebSocketUpgrade,
pub query: QueryParams,
}Fields§
§upgrade: WebSocketUpgrade§query: QueryParamsTrait Implementations§
Source§impl<'r, S> FromRequest<'r, S> for WsConnectionParams
impl<'r, S> FromRequest<'r, S> for WsConnectionParams
Source§type Rejection = &'static str
type Rejection = &'static str
If the extractor fails this “rejection” type is returned, which converted into a response and returned.
Source§async fn from_request<R: Read>(
state: &'r S,
parts: RequestParts<'r>,
body: RequestBody<'r, R>,
) -> Result<Self, Self::Rejection>
async fn from_request<R: Read>( state: &'r S, parts: RequestParts<'r>, body: RequestBody<'r, R>, ) -> Result<Self, Self::Rejection>
Attempt to extract from the request.
Auto Trait Implementations§
impl Freeze for WsConnectionParams
impl RefUnwindSafe for WsConnectionParams
impl Send for WsConnectionParams
impl Sync for WsConnectionParams
impl Unpin for WsConnectionParams
impl UnwindSafe for WsConnectionParams
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