Skip to main content

DeviceSubmission

Trait DeviceSubmission 

Source
pub trait DeviceSubmission {
    type Output;
    type Error;

    // Required method
    fn wait(self) -> Result<Self::Output, Self::Error>;
}
Expand description

Submitted device decode operation that can be waited on for completion.

Required Associated Types§

Source

type Output

Completed output type.

Source

type Error

Submission or decode error type.

Required Methods§

Source

fn wait(self) -> Result<Self::Output, Self::Error>

Wait for the submission and return its output.

§Errors

Returns Self::Error if submission or device execution fails.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§