Trait xwt_core::stream::ReadableChunk

source ·
pub trait ReadableChunk: Send {
    type Data<'a>: AsRef<[u8]>;
}
Expand description

Something that specifies the data type for a Chunk that can be read from a stream.

Required Associated Types§

source

type Data<'a>: AsRef<[u8]>

The type that will hold the read data.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl ReadableChunk for U8

§

type Data<'b> = Vec<u8>