Skip to main content

BufExt

Trait BufExt 

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

Required Methods§

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

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".

Implementors§

§

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