Lines Matching refs:driver
5 use crate::runtime::driver::Driver;
16 driver: Mutex<Option<Driver>>, field
28 pub(super) fn new(driver: Driver) -> Shell { in new()
29 let unpark = Arc::new(Handle(driver.unpark())); in new()
32 driver: Mutex::new(Some(driver)), in new()
47 if let Some(driver) = &mut self.take_driver() { in block_on()
48 return driver.block_on(f); in block_on()
74 let mut lock = self.driver.lock().unwrap(); in take_driver()
75 let driver = lock.take()?; in take_driver() localVariable
78 inner: Some(driver), in take_driver()
103 let driver = self.inner.as_mut().unwrap(); in block_on() localVariable
115 driver.park().unwrap(); in block_on()
124 .driver in drop()