wire up remote settings application

This commit is contained in:
Oliver Gould
2017-07-15 21:01:11 +00:00
parent 1ed4b7e56a
commit 59c92e1089
11 changed files with 292 additions and 88 deletions

View File

@@ -1,6 +1,6 @@
use {hpack, ConnectionError, FrameSize};
use frame::{self, Frame};
use proto::ReadySink;
use proto::{ConnectionTransporter, ReadySink};
use futures::*;
use tokio_io::{AsyncRead, AsyncWrite};
@@ -78,6 +78,16 @@ impl<T, B> FramedWrite<T, B>
}
}
impl<T, B> ConnectionTransporter for FramedWrite<T, B> {
fn apply_local_settings(&mut self, _set: &frame::SettingSet) -> Result<(), ConnectionError> {
Ok(())
}
fn apply_remote_settings(&mut self, _set: &frame::SettingSet) -> Result<(), ConnectionError> {
Ok(())
}
}
impl<T, B> Sink for FramedWrite<T, B>
where T: AsyncWrite,
B: Buf,