pub trait NjStream: Stream { // Provided method fn js_then<F>(self, fut: F) -> JsThen<Self, F> where F: FnMut(Self::Item), Self: Sized { ... } }