We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3878bb commit 4630b44Copy full SHA for 4630b44
src/conduit.rs
@@ -114,11 +114,11 @@ pub struct Response {
114
115
/// A Handler takes a request and returns a response or an error.
116
/// By default, a bare function implements `Handler`.
117
-pub trait Handler : Share + Send {
+pub trait Handler : Sync + Send {
118
fn call(&self, request: &mut Request) -> Result<Response, Box<Show>>;
119
}
120
121
-impl<T: Send + Share + Show> Handler for fn(&mut Request) -> Result<Response, T> {
+impl<T: Send + Sync + Show> Handler for fn(&mut Request) -> Result<Response, T> {
122
fn call(&self, request: &mut Request) -> Result<Response, Box<Show>> {
123
{ (*self)(request) }.map_err(|e| box e as Box<Show>)
124
0 commit comments