pub fn add_send_stream(&mut self, stream_id: StreamId) {
        if self.local_stream == LocalStreamState::NoStream {
            self.local_stream = LocalStreamState::Uninitialized(stream_id);
        } else {
            panic!("Adding multiple local streams");
        }
    }
/// Encoder stream has been created. Add the stream id.
/// # Panics
/// If a stream has already been added.
Encoder stream has been created. Add the stream id.
Encoder stream has been created . Add the stream id .
pub fn add_send_stream(&mut self, stream_id: StreamId) {
        if self.local_stream == LocalStreamState::NoStream {
            self.local_stream = LocalStreamState::Uninitialized(stream_id);
        } else {
            panic!("Adding multiple local streams");
        }
    }
pub fn add_send_stream ( & mut self , stream_id : StreamId ) { if self . local_stream == LocalStreamState :: NoStream { self . local_stream = LocalStreamState :: Uninitialized ( stream_id ) ; } else { panic ! ( " " ) ; } }
Encoder stream has been created.
Encoder stream has been created .
&mut self
stream_id
StreamId
panics
If a stream has already been added.
If a stream has already been added .