impl mstream