// Copyright 2024 The ChromiumOS Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. use std::convert::From; use std::convert::TryFrom; use crate::rutabaga_os::AsBorrowedDescriptor; use crate::rutabaga_os::OwnedDescriptor; use crate::rutabaga_utils::RutabagaError; use crate::rutabaga_utils::RutabagaHandle; use crate::rutabaga_utils::RutabagaResult; pub struct Event(()); impl Event { pub fn new() -> RutabagaResult { Err(RutabagaError::Unsupported) } pub fn signal(&mut self) -> RutabagaResult<()> { Err(RutabagaError::Unsupported) } pub fn wait(&self) -> RutabagaResult<()> { Err(RutabagaError::Unsupported) } pub fn try_clone(&self) -> RutabagaResult { Err(RutabagaError::Unsupported) } } impl TryFrom for Event { type Error = RutabagaError; fn try_from(_handle: RutabagaHandle) -> Result { Err(RutabagaError::Unsupported) } } impl From for RutabagaHandle { fn from(_evt: Event) -> Self { unimplemented!() } } impl AsBorrowedDescriptor for Event { fn as_borrowed_descriptor(&self) -> &OwnedDescriptor { unimplemented!() } }