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.8.0 · source§impl<T> Error for Box<T, Global>where
T: Error,
impl<T> Error for Box<T, Global>where T: Error,
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
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