useflate2::write::ZlibDecoder;/// ChannelId is a 16-byte identifier for a channel.
pubtypeChannelId=[u8;16];/// The Output Channel
#[derive(Debug)]pubstructChannelOut{/// The channel identifier.
pubid: ChannelId,
/// The frame number of the next frame to emit.
/// Increment after emitting.
pubframe:u64,
/// The uncompressed size of the channel.
/// Must be less than MAX_RLP_BYTES_PER_CHANNEL.
pubrlp_length:usize,
/// The compressor stage.
/// Write input data to it.
pubcompress:ZlibDecoder<Vec<u8>>,
/// The post-compression buffer.
pubbuf:Vec<u8>,
/// Whether the channel is closed.
pubclosed:bool,
}