fn handle_stream(w: &mut MyWorker, r: Response) {
    match r {
        Response::Init(Init { stream_name }) => w.stream = Some(stream_name),
        _ => {}
    }
}
/// Util function that maps stream-protocol responses to worker state
Util function that maps stream-protocol responses to worker state
Util function that maps stream - protocol responses to worker state
fn handle_stream(w: &mut MyWorker, r: Response) {
    match r {
        Response::Init(Init { stream_name }) => w.stream = Some(stream_name),
        _ => {}
    }
}
fn handle_stream ( w : & mut MyWorker , r : Response ) { match r { Response :: Init ( Init { stream_name } ) => w . stream = Some ( stream_name ) , _ => { } } }
Util function that maps stream-protocol responses to worker state
Util function that maps stream - protocol responses to worker state
w
&mut MyWorker
r
Response
w
&mut MyWorker
r
Response