Trait sqlx_core::io::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§