closer to flow control

This commit is contained in:
Oliver Gould
2017-07-12 21:04:58 +00:00
parent b9f3556070
commit 41ffd1d44f
11 changed files with 337 additions and 179 deletions

View File

@@ -43,6 +43,14 @@ impl<T, U> Settings<T>
}
}
pub fn local_settings(&self) -> &frame::SettingSet {
&self.local
}
pub fn remote_settings(&self) -> &frame::SettingSet {
&self.local
}
/// Swap the inner transport while maintaining the current state.
pub fn swap_inner<T2, F: FnOnce(T) -> T2>(self, f: F) -> Settings<T2> {
let inner = f(self.inner);