DriverGeneric

Trait DriverGeneric 

Source
pub trait DriverGeneric: Send + Any {
    // Required methods
    fn open(&mut self) -> Result<(), KError>;
    fn close(&mut self) -> Result<(), KError>;

    // Provided methods
    fn raw_any(&self) -> Option<&dyn Any> { ... }
    fn raw_any_mut(&mut self) -> Option<&mut dyn Any> { ... }
}

Required Methods§

Source

fn open(&mut self) -> Result<(), KError>

Source

fn close(&mut self) -> Result<(), KError>

Provided Methods§

Source

fn raw_any(&self) -> Option<&dyn Any>

Subtype casting support, returns subtype as &dyn Any

Source

fn raw_any_mut(&mut self) -> Option<&mut dyn Any>

Subtype casting support, returns subtype as &mut dyn Any

Implementors§