Skip to main content

Retire

Trait Retire 

Source
pub trait Retire<'d, V: View> {
    type Output: IntoIterator;

    // Required method
    fn retire<'a>(
        &'a mut self,
        pending: Kind<V::Close, V::Retire>,
        view: V,
    ) -> Poll<Self::Output>
       where 'd: 'a;

    // Provided methods
    fn submit<'a, P, R>(
        &'a mut self,
        pending: P,
        view: V,
        report: &mut R,
    ) -> Poll<()>
       where P: Into<Kind<V::Close, V::Retire>>,
             R: Report,
             R::Event: From<<Self::Output as IntoIterator>::Item>,
             'd: 'a { ... }
    fn drain<'a, R>(
        &'a mut self,
        view: V,
        pending: Option<<V as Queue>::Pending>,
        report: &mut R,
    )
       where V: Queue,
             R: Report,
             R::Event: From<<Self::Output as IntoIterator>::Item>,
             'd: 'a { ... }
}
Expand description

Retires one affine descriptor transaction before advancing its host domain.

Required Associated Types§

Required Methods§

Source

fn retire<'a>( &'a mut self, pending: Kind<V::Close, V::Retire>, view: V, ) -> Poll<Self::Output>
where 'd: 'a,

Provided Methods§

Source

fn submit<'a, P, R>( &'a mut self, pending: P, view: V, report: &mut R, ) -> Poll<()>
where P: Into<Kind<V::Close, V::Retire>>, R: Report, R::Event: From<<Self::Output as IntoIterator>::Item>, 'd: 'a,

Source

fn drain<'a, R>( &'a mut self, view: V, pending: Option<<V as Queue>::Pending>, report: &mut R, )
where V: Queue, R: Report, R::Event: From<<Self::Output as IntoIterator>::Item>, 'd: 'a,

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§