[−][src]Struct crossbeam_requests::Request
A object expected tois a request which is received from the Responder poll method
The request body can be obtained from the body() function and before being dropped it needs to send a response with the respond() function. Not doing a response on a request is considered a programmer error and will result in a panic when the object gets dropped
Methods
impl<Req, Res> Request<Req, Res>
[src]
pub fn body(&self) -> &Req
[src]
Get actual request data
pub fn respond(&mut self, response: Res)
[src]
TODO
Trait Implementations
Auto Trait Implementations
impl<Req, Res> Send for Request<Req, Res> where
Req: Send,
Res: Send,
Req: Send,
Res: Send,
impl<Req, Res> Sync for Request<Req, Res> where
Req: Sync,
Res: Send,
Req: Sync,
Res: Send,
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,