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§