Trait virt::BindProcessor

source ·
pub trait BindProcessor {
    type Processor<'a>: Processor
       where Self: 'a;
    type Error: Error + Send + Sync + 'static;

    // Required method
    fn bind(&mut self) -> Result<Self::Processor<'_>, Self::Error>;
}
Expand description

Trait used to bind a processor to the current thread.

Required Associated Types§

source

type Processor<'a>: Processor where Self: 'a

The processor object.

source

type Error: Error + Send + Sync + 'static

A binding error.

Required Methods§

source

fn bind(&mut self) -> Result<Self::Processor<'_>, Self::Error>

Binds the processor to the current thread.

Object Safety§

This trait is not object safe.

Implementors§