Trait MethodImpl

Source
pub trait MethodImpl {
    // Required methods
    fn init(buffer: &Buffer, fd: RawFd) -> Result<*mut u8>;
    fn done(buffer: &Buffer, pointer: *mut u8);

    // Provided method
    fn update(_buffer: &mut Buffer, _pointer: *mut u8) { ... }
}
Expand description

I/O method implementation details

Required Methods§

Source

fn init(buffer: &Buffer, fd: RawFd) -> Result<*mut u8>

Initialize pointer to data

Source

fn done(buffer: &Buffer, pointer: *mut u8)

Deinitialize pointer to data

Provided Methods§

Source

fn update(_buffer: &mut Buffer, _pointer: *mut u8)

Update buffer before enqueueing

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.

Implementors§