Trait rust_cuda::utils::async::Completion

source ·
pub trait Completion<T: ?Sized + BorrowMut<Self::Completed>>: Sealed {
    type Completed: ?Sized;

    // Required methods
    fn no_op() -> Self;
    fn complete(self, completed: &mut Self::Completed) -> CudaResult<()>;
}
Available on crate feature host only.

Required Associated Types§

Required Methods§

source

fn no_op() -> Self

source

fn complete(self, completed: &mut Self::Completed) -> CudaResult<()>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T: ?Sized + BorrowMut<C::Completed>, C: Completion<T>> Completion<T> for Option<C>

§

type Completed = <C as Completion<T>>::Completed

source§

fn no_op() -> Self

source§

fn complete(self, completed: &mut Self::Completed) -> CudaResult<()>

Implementors§

source§

impl<'a, T: ?Sized + BorrowMut<B>, B: ?Sized> Completion<T> for CompletionFnMut<'a, B>

§

type Completed = B

source§

impl<T: ?Sized> Completion<T> for NoCompletion

§

type Completed = T