aboutsummaryrefslogtreecommitdiff
path: root/crates/server/src/dispatch.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/server/src/dispatch.rs')
-rw-r--r--crates/server/src/dispatch.rs13
1 files changed, 0 insertions, 13 deletions
diff --git a/crates/server/src/dispatch.rs b/crates/server/src/dispatch.rs
index 369c56b64..381649859 100644
--- a/crates/server/src/dispatch.rs
+++ b/crates/server/src/dispatch.rs
@@ -71,19 +71,6 @@ pub fn handle_request<R, F>(req: &mut Option<RawRequest>, f: F) -> Result<()>
71 } 71 }
72} 72}
73 73
74pub fn expect_request<R: ClientRequest>(io: &mut Io, raw: RawRequest)
75 -> Result<Option<(R::Params, Responder<R>)>>
76{
77 let ret = match parse_request_as::<R>(raw)? {
78 Ok(x) => Some(x),
79 Err(raw) => {
80 unknown_method(io, raw)?;
81 None
82 }
83 };
84 Ok(ret)
85}
86
87fn parse_notification_as<N>(raw: RawNotification) -> Result<::std::result::Result<N::Params, RawNotification>> 74fn parse_notification_as<N>(raw: RawNotification) -> Result<::std::result::Result<N::Params, RawNotification>>
88 where 75 where
89 N: Notification, 76 N: Notification,