Struct scrappy_do::Callback [−][src]
pub struct Callback<I, C> { /* fields omitted */ }
Expand description
Transforms a Request
into Indeterminate
s.
Implementations
Construct a new Callback
to be processed.
Arguments
handler
: The function to process the generatedResponse
.request
: Used to generate aResponse
.context
: User-defined metadata passed to thehandler
function.
Trait Implementations
Auto Trait Implementations
impl<I, C> !RefUnwindSafe for Callback<I, C>
impl<I, C> !UnwindSafe for Callback<I, C>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more