pub trait OwnedBuf: Debug {
fn get_token(&self) -> u16;
fn get_body_data(&self) -> Result<Vec<u8>, Error>;
fn get_header(&self) -> Result<Vec<u8>, Error> { ... }
fn to_vec(&self) -> Result<Vec<u8>, Error> { ... }
fn write_header(&self, buffer: &mut Vec<u8>, body: &[u8]) -> Result<(), Error> { ... }
}
Expand description
Implementors are able to be converted to well formed chunks as expected on ChunkLoaderStream
Required Methods
Provided Methods
sourcefn get_header(&self) -> Result<Vec<u8>, Error>
fn get_header(&self) -> Result<Vec<u8>, Error>
Return the bytes corresponding to chunk’s header