Skip to main content

mesa3d_util/sys/stub/
event.rs

1// Copyright 2025 Google
2// SPDX-License-Identifier: MIT
3
4use crate::AsBorrowedDescriptor;
5use crate::MesaError;
6use crate::MesaHandle;
7use crate::MesaResult;
8use crate::OwnedDescriptor;
9
10pub struct Event;
11
12impl Event {
13    pub fn new() -> MesaResult<Event> {
14        Err(MesaError::Unsupported)
15    }
16
17    pub fn signal(&mut self) -> MesaResult<()> {
18        Err(MesaError::Unsupported)
19    }
20
21    pub fn wait(&self) -> MesaResult<()> {
22        Err(MesaError::Unsupported)
23    }
24
25    pub fn try_clone(&self) -> MesaResult<Event> {
26        Err(MesaError::Unsupported)
27    }
28}
29
30impl TryFrom<MesaHandle> for Event {
31    type Error = MesaError;
32    fn try_from(_handle: MesaHandle) -> Result<Self, Self::Error> {
33        Err(MesaError::Unsupported)
34    }
35}
36
37impl From<Event> for MesaHandle {
38    fn from(_evt: Event) -> Self {
39        unimplemented!()
40    }
41}
42
43impl AsBorrowedDescriptor for Event {
44    fn as_borrowed_descriptor(&self) -> &OwnedDescriptor {
45        unimplemented!()
46    }
47}