struct WaitResult {
result: UnsafeCell<Result<WaitReturn>>,
}Fields§
§result: UnsafeCell<Result<WaitReturn>>Implementations§
Source§impl WaitResult
impl WaitResult
pub const fn new() -> Self
Sourceunsafe fn get(&self) -> Result<WaitReturn>
unsafe fn get(&self) -> Result<WaitReturn>
Safety: Users of WaitResult::get() and WaitResult::set() must
ensure that their calls into them are not done concurrently.
Sourceunsafe fn set(&self, result: Result<WaitReturn>)
unsafe fn set(&self, result: Result<WaitReturn>)
Safety: Users of WaitResult::get() and WaitResult::set() must
ensure that their calls into them are not done concurrently.