expose ControlPing to Connection

This commit is contained in:
Oliver Gould
2017-07-22 21:23:24 +00:00
parent 55465a5954
commit bf724bd53e
3 changed files with 25 additions and 20 deletions

View File

@@ -390,3 +390,13 @@ impl<T: ApplySettings, P> ApplySettings for StreamStore<T, P> {
self.inner.apply_remote_settings(set)
}
}
impl<T: ControlPing, P> ControlPing for StreamStore<T, P> {
fn start_ping(&mut self, body: PingPayload) -> StartSend<PingPayload, ConnectionError> {
self.inner.start_ping(body)
}
fn take_pong(&mut self) -> Option<PingPayload> {
self.inner.take_pong()
}
}