virt

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§