Skip to main content

PowerExt

Trait PowerExt 

Source
pub trait PowerExt {
    // Required method
    fn connect_to_powerdomain(
        &self,
        instance: &str,
    ) -> Result<Client<Domain>, DriverError>;
}
Expand description

Extension trait for DriverContext to simplify connecting to power resources.

Required Methods§

Source

fn connect_to_powerdomain( &self, instance: &str, ) -> Result<Client<Domain>, DriverError>

Connects to a power domain resource with the given instance name.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl PowerExt for DriverContext

Source§

fn connect_to_powerdomain( &self, instance: &str, ) -> Result<Client<Domain>, DriverError>

Implementors§