pub fn band_to_write(kind: Channel, data: &[u8], out: impl Write) -> Result<usize>
Available on crate feature blocking-io only.
Expand description

Write data of kind to out using side-band encoding.

Examples found in repository?
src/line/blocking_io.rs (line 11)
9
10
11
12
13
14
15
    pub fn write_to(&self, out: impl io::Write) -> io::Result<usize> {
        match self {
            BandRef::Data(d) => encode::band_to_write(Channel::Data, d, out),
            BandRef::Progress(d) => encode::band_to_write(Channel::Progress, d, out),
            BandRef::Error(d) => encode::band_to_write(Channel::Error, d, out),
        }
    }