system_power_mode_config

Trait ClientConfigTestExt

Source
pub trait ClientConfigTestExt {
    // Required methods
    fn new(default_level: u64) -> Self;
    fn append_mode_match(self, mode: SystemMode, level: u64) -> Self;
}
Expand description

A trait that adds useful test-only methods to the ClientConfig struct.

This trait and its methods are not marked cfg(test) so that they may be used outside of this crate.

Required Methods§

Source

fn new(default_level: u64) -> Self

Source

fn append_mode_match(self, mode: SystemMode, level: u64) -> Self

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§