produce_byte

Function produce_byte 

Source
pub async fn produce_byte<Producer>(
    producer: &mut Producer,
) -> Result<u8, DecodeError<Producer::Error>>
where Producer: BulkProducer<Item = u8>,
Expand description

Have Producer produce a single byte, or return an error if the final value was produced or the producer experienced an error.