pub struct TestPowerManager {
pub calls: Arc<Mutex<Vec<String>>>,
pub active_leases: Arc<Mutex<Vec<(String, LeaseToken)>>>,
}Fields§
§calls: Arc<Mutex<Vec<String>>>§active_leases: Arc<Mutex<Vec<(String, LeaseToken)>>>Implementations§
Trait Implementations§
Source§impl PowerManager for TestPowerManager
impl PowerManager for TestPowerManager
Auto Trait Implementations§
impl Freeze for TestPowerManager
impl !RefUnwindSafe for TestPowerManager
impl Send for TestPowerManager
impl Sync for TestPowerManager
impl Unpin for TestPowerManager
impl UnsafeUnpin for TestPowerManager
impl !UnwindSafe for TestPowerManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more