Skip to main content

Driver

Trait Driver 

Source
pub trait Driver: 'static {
    // Required methods
    fn handle(&self) -> Box<dyn Notify>;
    fn run(&self, rt: &Runtime) -> Result<(), Error>;

    // Provided method
    fn clear(&self) { ... }
}

Required Methods§

Source

fn handle(&self) -> Box<dyn Notify>

Source

fn run(&self, rt: &Runtime) -> Result<(), Error>

Provided Methods§

Source

fn clear(&self)

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl Driver for ntex::rt::polling::Driver

Source§

impl Driver for ntex::rt::uring::Driver