sqlx_core::io

Trait BufExt

Source
pub trait BufExt: Buf {
    // Required methods
    fn get_bytes_nul(&mut self) -> Result<Bytes, Error>;
    fn get_bytes(&mut self, len: usize) -> Bytes;
    fn get_str_nul(&mut self) -> Result<String, Error>;
    fn get_str(&mut self, len: usize) -> Result<String, Error>;
}

Required Methods§

Source

fn get_bytes_nul(&mut self) -> Result<Bytes, Error>

Source

fn get_bytes(&mut self, len: usize) -> Bytes

Source

fn get_str_nul(&mut self) -> Result<String, Error>

Source

fn get_str(&mut self, len: usize) -> Result<String, Error>

Implementations on Foreign Types§

Source§

impl BufExt for Bytes

Source§

fn get_bytes_nul(&mut self) -> Result<Bytes, Error>

Source§

fn get_bytes(&mut self, len: usize) -> Bytes

Source§

fn get_str_nul(&mut self) -> Result<String, Error>

Source§

fn get_str(&mut self, len: usize) -> Result<String, Error>

Implementors§