Trait BufExt

Source
pub trait BufExt {
    // Required methods
    fn get<T>(&mut self) -> Result<T, UnexpectedEnd>
       where T: Decode;
    fn get_var(&mut self) -> Result<u64, UnexpectedEnd>;
}
Available on crate feature h3 only.

Required Methods§

Source

fn get<T>(&mut self) -> Result<T, UnexpectedEnd>
where T: Decode,

Source

fn get_var(&mut self) -> Result<u64, UnexpectedEnd>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> BufExt for T
where T: Buf,