[][src]Trait libptp::Read

pub trait Read: ReadBytesExt {
    fn expect_end(&mut self) -> Result<(), Error>;

    fn read_ptp_u8(&mut self) -> Result<u8, Error> { ... }
fn read_ptp_i8(&mut self) -> Result<i8, Error> { ... }
fn read_ptp_u16(&mut self) -> Result<u16, Error> { ... }
fn read_ptp_i16(&mut self) -> Result<i16, Error> { ... }
fn read_ptp_u32(&mut self) -> Result<u32, Error> { ... }
fn read_ptp_i32(&mut self) -> Result<i32, Error> { ... }
fn read_ptp_u64(&mut self) -> Result<u64, Error> { ... }
fn read_ptp_i64(&mut self) -> Result<i64, Error> { ... }
fn read_ptp_u128(&mut self) -> Result<u128, Error> { ... }
fn read_ptp_i128(&mut self) -> Result<i128, Error> { ... }
fn read_ptp_vec<T: Sized, U: Fn(&mut Self) -> Result<T, Error>>(
        &mut self,
        func: U
    ) -> Result<Vec<T>, Error> { ... }
fn read_ptp_u8_vec(&mut self) -> Result<Vec<u8>, Error> { ... }
fn read_ptp_i8_vec(&mut self) -> Result<Vec<i8>, Error> { ... }
fn read_ptp_u16_vec(&mut self) -> Result<Vec<u16>, Error> { ... }
fn read_ptp_i16_vec(&mut self) -> Result<Vec<i16>, Error> { ... }
fn read_ptp_u32_vec(&mut self) -> Result<Vec<u32>, Error> { ... }
fn read_ptp_i32_vec(&mut self) -> Result<Vec<i32>, Error> { ... }
fn read_ptp_u64_vec(&mut self) -> Result<Vec<u64>, Error> { ... }
fn read_ptp_i64_vec(&mut self) -> Result<Vec<i64>, Error> { ... }
fn read_ptp_u128_vec(&mut self) -> Result<Vec<u128>, Error> { ... }
fn read_ptp_i128_vec(&mut self) -> Result<Vec<i128>, Error> { ... }
fn read_ptp_str(&mut self) -> Result<String, Error> { ... } }

Required methods

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

Loading content...

Provided methods

fn read_ptp_u8(&mut self) -> Result<u8, Error>

fn read_ptp_i8(&mut self) -> Result<i8, Error>

fn read_ptp_u16(&mut self) -> Result<u16, Error>

fn read_ptp_i16(&mut self) -> Result<i16, Error>

fn read_ptp_u32(&mut self) -> Result<u32, Error>

fn read_ptp_i32(&mut self) -> Result<i32, Error>

fn read_ptp_u64(&mut self) -> Result<u64, Error>

fn read_ptp_i64(&mut self) -> Result<i64, Error>

fn read_ptp_u128(&mut self) -> Result<u128, Error>

fn read_ptp_i128(&mut self) -> Result<i128, Error>

fn read_ptp_vec<T: Sized, U: Fn(&mut Self) -> Result<T, Error>>(
    &mut self,
    func: U
) -> Result<Vec<T>, Error>

fn read_ptp_u8_vec(&mut self) -> Result<Vec<u8>, Error>

fn read_ptp_i8_vec(&mut self) -> Result<Vec<i8>, Error>

fn read_ptp_u16_vec(&mut self) -> Result<Vec<u16>, Error>

fn read_ptp_i16_vec(&mut self) -> Result<Vec<i16>, Error>

fn read_ptp_u32_vec(&mut self) -> Result<Vec<u32>, Error>

fn read_ptp_i32_vec(&mut self) -> Result<Vec<i32>, Error>

fn read_ptp_u64_vec(&mut self) -> Result<Vec<u64>, Error>

fn read_ptp_i64_vec(&mut self) -> Result<Vec<i64>, Error>

fn read_ptp_u128_vec(&mut self) -> Result<Vec<u128>, Error>

fn read_ptp_i128_vec(&mut self) -> Result<Vec<i128>, Error>

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

Loading content...

Implementations on Foreign Types

impl<T: AsRef<[u8]>> Read for Cursor<T>[src]

Loading content...

Implementors

Loading content...