Trait tx5::BytesBufExt

source ·
pub trait BytesBufExt {
    // Required method
    fn to_vec(self) -> Result<Vec<u8>>;
}
Expand description

Helper extension trait for Box<dyn bytes::Buf + 'static + Send>.

Required Methods§

source

fn to_vec(self) -> Result<Vec<u8>>

Convert into a Vec<u8>.

Implementations on Foreign Types§

source§

impl BytesBufExt for Box<dyn Buf + Send + 'static>

source§

fn to_vec(self) -> Result<Vec<u8>>

Implementors§