Struct apalis_core::request::Request

source ·
pub struct Request<T> { /* private fields */ }
Expand description

Represents a job which can be serialized and executed

Implementations§

source§

impl<T> Request<T>

source

pub fn new(req: T) -> Self

Creates a new Request

source

pub fn new_with_data(req: T, data: Extensions) -> Self

Creates a request with context provided

source

pub fn inner(&self) -> &T

Get the underlying reference of the request

source

pub fn take(self) -> T

Take the underlying reference of the request

Methods from Deref<Target = Extensions>§

source

pub fn insert<T: Clone + Send + Sync + 'static>(&mut self, val: T) -> Option<T>

Insert a type into this Extensions.

If a extension of this type already existed, it will be returned.

§Example
let mut ext = Extensions::new();
assert!(ext.insert(5i32).is_none());
assert!(ext.insert(4u8).is_none());
assert_eq!(ext.insert(9i32), Some(5i32));
source

pub fn get<T: Send + Sync + 'static>(&self) -> Option<&T>

Get a reference to a type previously inserted on this Extensions.

§Example
let mut ext = Extensions::new();
assert!(ext.get::<i32>().is_none());
ext.insert(5i32);

assert_eq!(ext.get::<i32>(), Some(&5i32));
source

pub fn get_mut<T: Send + Sync + 'static>(&mut self) -> Option<&mut T>

Get a mutable reference to a type previously inserted on this Extensions.

§Example
let mut ext = Extensions::new();
ext.insert(String::from("Hello"));
ext.get_mut::<String>().unwrap().push_str(" World");

assert_eq!(ext.get::<String>().unwrap(), "Hello World");
source

pub fn remove<T: Send + Sync + 'static>(&mut self) -> Option<T>

Remove a type from this Extensions.

If a extension of this type existed, it will be returned.

§Example
let mut ext = Extensions::new();
ext.insert(5i32);
assert_eq!(ext.remove::<i32>(), Some(5i32));
assert!(ext.get::<i32>().is_none());
source

pub fn clear(&mut self)

Clear the Extensions of all inserted extensions.

§Example
let mut ext = Extensions::new();
ext.insert(5i32);
ext.clear();

assert!(ext.get::<i32>().is_none());
source

pub fn is_empty(&self) -> bool

Check whether the extension set is empty or not.

§Example
let mut ext = Extensions::new();
assert!(ext.is_empty());
ext.insert(5i32);
assert!(!ext.is_empty());
source

pub fn len(&self) -> usize

Get the number of extensions available.

§Example
let mut ext = Extensions::new();
assert_eq!(ext.len(), 0);
ext.insert(5i32);
assert_eq!(ext.len(), 1);
source

pub fn extend(&mut self, other: Self)

Extends self with another Extensions.

If an instance of a specific type exists in both, the one in self is overwritten with the one from other.

§Example
let mut ext_a = Extensions::new();
ext_a.insert(8u8);
ext_a.insert(16u16);

let mut ext_b = Extensions::new();
ext_b.insert(4u8);
ext_b.insert("hello");

ext_a.extend(ext_b);
assert_eq!(ext_a.len(), 3);
assert_eq!(ext_a.get::<u8>(), Some(&4u8));
assert_eq!(ext_a.get::<u16>(), Some(&16u16));
assert_eq!(ext_a.get::<&'static str>().copied(), Some("hello"));

Trait Implementations§

source§

impl<T: Send + 'static + Sync> Backend<Request<T>> for MemoryStorage<T>

source§

type Stream = BackendStream<Pin<Box<dyn Stream<Item = Result<Option<Request<T>>, Error>> + Send>>>

The stream to be produced by the backend
source§

type Layer = ServiceBuilder<Identity>

Returns the final decoration of layers
source§

fn common_layer(&self, _worker: WorkerId) -> Self::Layer

Allows the backend to decorate the service with Layer
source§

fn poll(self, _worker: WorkerId) -> Poller<Self::Stream>

Returns a poller that is ready for streaming
source§

impl<T> Backend<Request<T>> for RequestStream<Request<T>>

source§

type Stream = Pin<Box<dyn Stream<Item = Result<Option<Request<T>>, Error>> + Send>>

The stream to be produced by the backend
source§

type Layer = ServiceBuilder<Identity>

Returns the final decoration of layers
source§

fn common_layer(&self, _worker: WorkerId) -> Self::Layer

Allows the backend to decorate the service with Layer
source§

fn poll(self, _worker: WorkerId) -> Poller<Self::Stream>

Returns a poller that is ready for streaming
source§

impl<T: Clone> Clone for Request<T>

source§

fn clone(&self) -> Request<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Debug> Debug for Request<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T> Deref for Request<T>

source§

type Target = Extensions

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl<T> DerefMut for Request<T>

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl<'de, T> Deserialize<'de> for Request<T>
where T: Deserialize<'de>,

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<T> Serialize for Request<T>
where T: Serialize,

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<SV, A, J> Service<Request<J>> for AckService<SV, A, J>
where SV: Service<Request<J>> + Send + Sync + 'static, SV::Error: Error + Send + Sync + 'static, <SV as Service<Request<J>>>::Future: Send + 'static, A: Ack<J> + Send + 'static + Clone + Sync, J: 'static, <SV as Service<Request<J>>>::Response: Send, <A as Ack<J>>::Acknowledger: Sync + Send + Clone,

source§

type Response = <SV as Service<Request<J>>>::Response

Responses given by the service.
source§

type Error = <SV as Service<Request<J>>>::Error

Errors produced by the service.
source§

type Future = Pin<Box<dyn Future<Output = Result<<AckService<SV, A, J> as Service<Request<J>>>::Response, <AckService<SV, A, J> as Service<Request<J>>>::Error>> + Send>>

The future response value.
source§

fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
source§

fn call(&mut self, request: Request<J>) -> Self::Future

Process the request and return the response asynchronously. Read more
source§

impl<S, T, Req> Service<Request<Req>> for AddExtension<S, T>
where S: Service<Request<Req>>, T: Clone + Send + Sync + 'static,

source§

type Response = <S as Service<Request<Req>>>::Response

Responses given by the service.
source§

type Error = <S as Service<Request<Req>>>::Error

Errors produced by the service.
source§

type Future = <S as Service<Request<Req>>>::Future

The future response value.
source§

fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
source§

fn call(&mut self, req: Request<Req>) -> Self::Future

Process the request and return the response asynchronously. Read more
source§

impl<T, F, Req, E, R> Service<Request<Req>> for ServiceFn<T, ()>
where T: FnMut(Req) -> F, F: Future, F::Output: IntoResponse<Result = Result<R, E>>,

source§

type Response = R

Responses given by the service.
source§

type Error = E

Errors produced by the service.
source§

type Future = Map<F, fn(_: <F as Future>::Output) -> Result<R, E>>

The future response value.
source§

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
source§

fn call(&mut self, task: Request<Req>) -> Self::Future

Process the request and return the response asynchronously. Read more
source§

impl<T, F, Req, E, R, A1, A2> Service<Request<Req>> for ServiceFn<T, (A1, A2)>
where T: FnMut(Req, A1, A2) -> F, F: Future, F::Output: IntoResponse<Result = Result<R, E>>, A1: FromData, A2: FromData,

source§

type Response = R

Responses given by the service.
source§

type Error = E

Errors produced by the service.
source§

type Future = Map<F, fn(_: <F as Future>::Output) -> Result<R, E>>

The future response value.
source§

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
source§

fn call(&mut self, task: Request<Req>) -> Self::Future

Process the request and return the response asynchronously. Read more
source§

impl<T, F, Req, E, R, A1, A2, A3> Service<Request<Req>> for ServiceFn<T, (A1, A2, A3)>
where T: FnMut(Req, A1, A2, A3) -> F, F: Future, F::Output: IntoResponse<Result = Result<R, E>>, A1: FromData, A2: FromData, A3: FromData,

source§

type Response = R

Responses given by the service.
source§

type Error = E

Errors produced by the service.
source§

type Future = Map<F, fn(_: <F as Future>::Output) -> Result<R, E>>

The future response value.
source§

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
source§

fn call(&mut self, task: Request<Req>) -> Self::Future

Process the request and return the response asynchronously. Read more
source§

impl<T, F, Req, E, R, A1, A2, A3, A4> Service<Request<Req>> for ServiceFn<T, (A1, A2, A3, A4)>
where T: FnMut(Req, A1, A2, A3, A4) -> F, F: Future, F::Output: IntoResponse<Result = Result<R, E>>, A1: FromData, A2: FromData, A3: FromData, A4: FromData,

source§

type Response = R

Responses given by the service.
source§

type Error = E

Errors produced by the service.
source§

type Future = Map<F, fn(_: <F as Future>::Output) -> Result<R, E>>

The future response value.
source§

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
source§

fn call(&mut self, task: Request<Req>) -> Self::Future

Process the request and return the response asynchronously. Read more
source§

impl<T, F, Req, E, R, A1, A2, A3, A4, A5> Service<Request<Req>> for ServiceFn<T, (A1, A2, A3, A4, A5)>
where T: FnMut(Req, A1, A2, A3, A4, A5) -> F, F: Future, F::Output: IntoResponse<Result = Result<R, E>>, A1: FromData, A2: FromData, A3: FromData, A4: FromData, A5: FromData,

source§

type Response = R

Responses given by the service.
source§

type Error = E

Errors produced by the service.
source§

type Future = Map<F, fn(_: <F as Future>::Output) -> Result<R, E>>

The future response value.
source§

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
source§

fn call(&mut self, task: Request<Req>) -> Self::Future

Process the request and return the response asynchronously. Read more
source§

impl<T, F, Req, E, R, A1, A2, A3, A4, A5, A6> Service<Request<Req>> for ServiceFn<T, (A1, A2, A3, A4, A5, A6)>
where T: FnMut(Req, A1, A2, A3, A4, A5, A6) -> F, F: Future, F::Output: IntoResponse<Result = Result<R, E>>, A1: FromData, A2: FromData, A3: FromData, A4: FromData, A5: FromData, A6: FromData,

source§

type Response = R

Responses given by the service.
source§

type Error = E

Errors produced by the service.
source§

type Future = Map<F, fn(_: <F as Future>::Output) -> Result<R, E>>

The future response value.
source§

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
source§

fn call(&mut self, task: Request<Req>) -> Self::Future

Process the request and return the response asynchronously. Read more
source§

impl<T, F, Req, E, R, A1, A2, A3, A4, A5, A6, A7> Service<Request<Req>> for ServiceFn<T, (A1, A2, A3, A4, A5, A6, A7)>
where T: FnMut(Req, A1, A2, A3, A4, A5, A6, A7) -> F, F: Future, F::Output: IntoResponse<Result = Result<R, E>>, A1: FromData, A2: FromData, A3: FromData, A4: FromData, A5: FromData, A6: FromData, A7: FromData,

source§

type Response = R

Responses given by the service.
source§

type Error = E

Errors produced by the service.
source§

type Future = Map<F, fn(_: <F as Future>::Output) -> Result<R, E>>

The future response value.
source§

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
source§

fn call(&mut self, task: Request<Req>) -> Self::Future

Process the request and return the response asynchronously. Read more
source§

impl<T, F, Req, E, R, A1, A2, A3, A4, A5, A6, A7, A8> Service<Request<Req>> for ServiceFn<T, (A1, A2, A3, A4, A5, A6, A7, A8)>
where T: FnMut(Req, A1, A2, A3, A4, A5, A6, A7, A8) -> F, F: Future, F::Output: IntoResponse<Result = Result<R, E>>, A1: FromData, A2: FromData, A3: FromData, A4: FromData, A5: FromData, A6: FromData, A7: FromData, A8: FromData,

source§

type Response = R

Responses given by the service.
source§

type Error = E

Errors produced by the service.
source§

type Future = Map<F, fn(_: <F as Future>::Output) -> Result<R, E>>

The future response value.
source§

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
source§

fn call(&mut self, task: Request<Req>) -> Self::Future

Process the request and return the response asynchronously. Read more
source§

impl<T, F, Req, E, R, A1, A2, A3, A4, A5, A6, A7, A8, A9> Service<Request<Req>> for ServiceFn<T, (A1, A2, A3, A4, A5, A6, A7, A8, A9)>
where T: FnMut(Req, A1, A2, A3, A4, A5, A6, A7, A8, A9) -> F, F: Future, F::Output: IntoResponse<Result = Result<R, E>>, A1: FromData, A2: FromData, A3: FromData, A4: FromData, A5: FromData, A6: FromData, A7: FromData, A8: FromData, A9: FromData,

source§

type Response = R

Responses given by the service.
source§

type Error = E

Errors produced by the service.
source§

type Future = Map<F, fn(_: <F as Future>::Output) -> Result<R, E>>

The future response value.
source§

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
source§

fn call(&mut self, task: Request<Req>) -> Self::Future

Process the request and return the response asynchronously. Read more
source§

impl<T, F, Req, E, R, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10> Service<Request<Req>> for ServiceFn<T, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)>
where T: FnMut(Req, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10) -> F, F: Future, F::Output: IntoResponse<Result = Result<R, E>>, A1: FromData, A2: FromData, A3: FromData, A4: FromData, A5: FromData, A6: FromData, A7: FromData, A8: FromData, A9: FromData, A10: FromData,

source§

type Response = R

Responses given by the service.
source§

type Error = E

Errors produced by the service.
source§

type Future = Map<F, fn(_: <F as Future>::Output) -> Result<R, E>>

The future response value.
source§

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
source§

fn call(&mut self, task: Request<Req>) -> Self::Future

Process the request and return the response asynchronously. Read more
source§

impl<T, F, Req, E, R, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11> Service<Request<Req>> for ServiceFn<T, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11)>
where T: FnMut(Req, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11) -> F, F: Future, F::Output: IntoResponse<Result = Result<R, E>>, A1: FromData, A2: FromData, A3: FromData, A4: FromData, A5: FromData, A6: FromData, A7: FromData, A8: FromData, A9: FromData, A10: FromData, A11: FromData,

source§

type Response = R

Responses given by the service.
source§

type Error = E

Errors produced by the service.
source§

type Future = Map<F, fn(_: <F as Future>::Output) -> Result<R, E>>

The future response value.
source§

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
source§

fn call(&mut self, task: Request<Req>) -> Self::Future

Process the request and return the response asynchronously. Read more
source§

impl<T, F, Req, E, R, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12> Service<Request<Req>> for ServiceFn<T, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12)>
where T: FnMut(Req, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12) -> F, F: Future, F::Output: IntoResponse<Result = Result<R, E>>, A1: FromData, A2: FromData, A3: FromData, A4: FromData, A5: FromData, A6: FromData, A7: FromData, A8: FromData, A9: FromData, A10: FromData, A11: FromData, A12: FromData,

source§

type Response = R

Responses given by the service.
source§

type Error = E

Errors produced by the service.
source§

type Future = Map<F, fn(_: <F as Future>::Output) -> Result<R, E>>

The future response value.
source§

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
source§

fn call(&mut self, task: Request<Req>) -> Self::Future

Process the request and return the response asynchronously. Read more
source§

impl<T, F, Req, E, R, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13> Service<Request<Req>> for ServiceFn<T, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13)>
where T: FnMut(Req, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13) -> F, F: Future, F::Output: IntoResponse<Result = Result<R, E>>, A1: FromData, A2: FromData, A3: FromData, A4: FromData, A5: FromData, A6: FromData, A7: FromData, A8: FromData, A9: FromData, A10: FromData, A11: FromData, A12: FromData, A13: FromData,

source§

type Response = R

Responses given by the service.
source§

type Error = E

Errors produced by the service.
source§

type Future = Map<F, fn(_: <F as Future>::Output) -> Result<R, E>>

The future response value.
source§

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
source§

fn call(&mut self, task: Request<Req>) -> Self::Future

Process the request and return the response asynchronously. Read more
source§

impl<T, F, Req, E, R, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14> Service<Request<Req>> for ServiceFn<T, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14)>
where T: FnMut(Req, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14) -> F, F: Future, F::Output: IntoResponse<Result = Result<R, E>>, A1: FromData, A2: FromData, A3: FromData, A4: FromData, A5: FromData, A6: FromData, A7: FromData, A8: FromData, A9: FromData, A10: FromData, A11: FromData, A12: FromData, A13: FromData, A14: FromData,

source§

type Response = R

Responses given by the service.
source§

type Error = E

Errors produced by the service.
source§

type Future = Map<F, fn(_: <F as Future>::Output) -> Result<R, E>>

The future response value.
source§

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
source§

fn call(&mut self, task: Request<Req>) -> Self::Future

Process the request and return the response asynchronously. Read more
source§

impl<T, F, Req, E, R, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15> Service<Request<Req>> for ServiceFn<T, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15)>
where T: FnMut(Req, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15) -> F, F: Future, F::Output: IntoResponse<Result = Result<R, E>>, A1: FromData, A2: FromData, A3: FromData, A4: FromData, A5: FromData, A6: FromData, A7: FromData, A8: FromData, A9: FromData, A10: FromData, A11: FromData, A12: FromData, A13: FromData, A14: FromData, A15: FromData,

source§

type Response = R

Responses given by the service.
source§

type Error = E

Errors produced by the service.
source§

type Future = Map<F, fn(_: <F as Future>::Output) -> Result<R, E>>

The future response value.
source§

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
source§

fn call(&mut self, task: Request<Req>) -> Self::Future

Process the request and return the response asynchronously. Read more
source§

impl<T, F, Req, E, R, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16> Service<Request<Req>> for ServiceFn<T, (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16)>
where T: FnMut(Req, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16) -> F, F: Future, F::Output: IntoResponse<Result = Result<R, E>>, A1: FromData, A2: FromData, A3: FromData, A4: FromData, A5: FromData, A6: FromData, A7: FromData, A8: FromData, A9: FromData, A10: FromData, A11: FromData, A12: FromData, A13: FromData, A14: FromData, A15: FromData, A16: FromData,

source§

type Response = R

Responses given by the service.
source§

type Error = E

Errors produced by the service.
source§

type Future = Map<F, fn(_: <F as Future>::Output) -> Result<R, E>>

The future response value.
source§

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
source§

fn call(&mut self, task: Request<Req>) -> Self::Future

Process the request and return the response asynchronously. Read more
source§

impl<T, F, Req, E, R, A> Service<Request<Req>> for ServiceFn<T, A>
where T: FnMut(Req, A) -> F, F: Future, F::Output: IntoResponse<Result = Result<R, E>>, A: FromData,

source§

type Response = R

Responses given by the service.
source§

type Error = E

Errors produced by the service.
source§

type Future = Map<F, fn(_: <F as Future>::Output) -> Result<R, E>>

The future response value.
source§

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
source§

fn call(&mut self, task: Request<Req>) -> Self::Future

Process the request and return the response asynchronously. Read more

Auto Trait Implementations§

§

impl<T> Freeze for Request<T>
where T: Freeze,

§

impl<T> !RefUnwindSafe for Request<T>

§

impl<T> Send for Request<T>
where T: Send,

§

impl<T> Sync for Request<T>
where T: Sync,

§

impl<T> Unpin for Request<T>
where T: Unpin,

§

impl<T> !UnwindSafe for Request<T>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,