oneapi_rs/info/
event-info.rs

1//
2// Copyright (C) 2026 Intel Corporation
3//
4// Under the MIT License or the Apache License v2.0.
5// See LICENSE-MIT and LICENSE-APACHE for license information.
6// SPDX-License-Identifier: MIT OR Apache-2.0
7//
8
9use crate::event::Event;
10use crate::info::Info;
11use crate::private::Sealed;
12use oneapi_rs_sys::event::ffi;
13
14/// Returns the event status of the action associated with this event.
15pub struct CommandExecutionStatus;
16impl Sealed for CommandExecutionStatus {}
17impl Info for CommandExecutionStatus {
18    type Item = crate::info::EventCommandStatus;
19    type Target = Event;
20    fn get_item(target: &Self::Target) -> Self::Item {
21        ffi::get_command_execution_status(&target.0)
22    }
23}