pub trait ChargerProxyInterface: Send + Sync {
type EnableResponseFut: Future<Output = Result<ChargerEnableResult, Error>> + Send;
// Required method
fn enable(&self, enable: bool) -> Self::EnableResponseFut;
}Required Associated Types§
type EnableResponseFut: Future<Output = Result<ChargerEnableResult, Error>> + Send
Required Methods§
fn enable(&self, enable: bool) -> Self::EnableResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".