compio_driver::op

Trait BufResultExt

source
pub trait BufResultExt {
    // Required method
    fn map_advanced(self) -> Self;
}
Expand description

Trait to update the buffer length inside the BufResult.

Required Methods§

source

fn map_advanced(self) -> Self

Call SetBufInit::set_buf_init if the result is Ok.

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.

Implementations on Foreign Types§

source§

impl<T: SetBufInit> BufResultExt for BufResult<usize, T>

source§

fn map_advanced(self) -> Self

source§

impl<T: SetBufInit, C: SetBufInit, O> BufResultExt for BufResult<(usize, usize, O), (T, C)>

source§

fn map_advanced(self) -> Self

source§

impl<T: SetBufInit, O> BufResultExt for BufResult<(usize, O), T>

source§

fn map_advanced(self) -> Self

Implementors§