/// Makes a copy of this set of streams, but with all streams reset to their iniital idle states.
Makes a copy of this set of streams, but with all streams reset to their iniital idle states.
Makes a copy of this set of streams but with all streams reset to their iniital idle states .
pub fn as_new(&self) -> Self {
        let mut new_map = HashMap::new();
        for (id, stream) in self.0.iter() {
            new_map.insert(id.clone(), stream.as_new());
        }
        Self(new_map)
    }
pub fn as_new ( & self ) -> Self { let mut new_map = HashMap :: new ( ) ; for ( id , stream ) in self . 0 . iter ( ) { new_map . insert ( id . clone ( ) , stream . as_new ( ) ) ; } Self ( new_map ) }
Makes a copy of this set of streams, but with all streams reset to their iniital idle states.
Makes a copy of this set of streams but with all streams reset to their iniital idle states .
&self