Skip to main content

IoConsumer

Trait IoConsumer 

Source
pub trait IoConsumer {
    // Required method
    fn set_io_result(&mut self, request: IoRequestId, result: IoResult);
}
Expand description

Receives fulfilled requests. Implementations only store; they never compute here.

Required Methods§

Source

fn set_io_result(&mut self, request: IoRequestId, result: IoResult)

Stores the result for request.

The driver only delivers fetches the consumer published and results that match their targets, so anything else is a driver bug and the consumer may panic.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§