Struct leptos_spin::request::SpinRequest
source · pub struct SpinRequest {
pub req: IncomingRequest,
pub path_with_query: Option<String>,
}
Expand description
This is here because the orphan rule does not allow us to implement it on IncomingRequest with the generic error. So we have to wrap it to make it happy
Fields§
§req: IncomingRequest
§path_with_query: Option<String>
Implementations§
source§impl SpinRequest
impl SpinRequest
pub fn new_from_req(req: IncomingRequest) -> Self
Trait Implementations§
source§impl Debug for SpinRequest
impl Debug for SpinRequest
source§impl<CustErr> Req<CustErr> for SpinRequestwhere
CustErr: 'static,
impl<CustErr> Req<CustErr> for SpinRequestwhere
CustErr: 'static,
source§fn as_query(&self) -> Option<&str>
fn as_query(&self) -> Option<&str>
Returns the query string of the request’s URL, starting after the
?
.source§async fn try_into_bytes(self) -> Result<Bytes, ServerFnError<CustErr>>
async fn try_into_bytes(self) -> Result<Bytes, ServerFnError<CustErr>>
Attempts to extract the body of the request into
Bytes
.source§async fn try_into_string(self) -> Result<String, ServerFnError<CustErr>>
async fn try_into_string(self) -> Result<String, ServerFnError<CustErr>>
Attempts to convert the body of the request into a string.
source§fn try_into_stream(
self
) -> Result<impl Stream<Item = Result<Bytes, ServerFnError>> + Send + 'static, ServerFnError<CustErr>>
fn try_into_stream( self ) -> Result<impl Stream<Item = Result<Bytes, ServerFnError>> + Send + 'static, ServerFnError<CustErr>>
Attempts to convert the body of the request into a stream of bytes.
Auto Trait Implementations§
impl Freeze for SpinRequest
impl RefUnwindSafe for SpinRequest
impl Send for SpinRequest
impl Sync for SpinRequest
impl Unpin for SpinRequest
impl UnwindSafe for SpinRequest
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<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more