# Type Alias cargo_test_support::registry::RequestCallback

source ·

    type RequestCallback = Box<dyn Send + Fn(&Request, &HttpServer) -> Response>;

## Aliased Type§

    struct RequestCallback(Unique<dyn Fn(&Request, &HttpServer) -> Response + Send>, Global);

## Fields§

§`0: Unique<dyn Fn(&Request, &HttpServer) -> Response + Send>`§`1: Global`

## Trait Implementations§

1.0.0 · source§

### impl<T, A> Deref for Box<T, A>where A: Allocator, T: ?Sized,

§

#### type Target = T

The resulting type after dereferencing.
source§

#### fn deref(&self) -> &T

Dereferences the value.
1.8.0 · source§

### impl<T> Error for Box<T, Global>where T: Error,

source§

#### fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
Read more
source§

#### fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

#### fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
source§

#### fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (`error_generic_member_access`)
Provides type based access to context intended for error reports. Read more

## Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain `repr(...)` attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 16 bytes