Path: blob/main/devices/src/virtio/vhost_user_backend/connection/sys/windows.rs
5394 views
// Copyright 2022 The ChromiumOS Authors1// Use of this source code is governed by a BSD-style license that can be2// found in the LICENSE file.34use std::pin::Pin;56use base::RawDescriptor;7use cros_async::Executor;8use futures::Future;910use crate::virtio::vhost_user_backend::connection::VhostUserConnectionTrait;11use crate::virtio::vhost_user_backend::handler::VhostUserDevice;1213/// TODO implement this. On Windows the `vhost_user_tube` can be provided through the `path`14/// constructor string, and the future returned by `run_backend` can be listened to alonside the15/// close and exit events.16pub struct VhostUserListener;17pub struct VhostUserStream;1819impl VhostUserConnectionTrait for VhostUserListener {20fn run_req_handler<'e>(21self,22_handler: Box<dyn vmm_vhost::Backend>,23_ex: &'e Executor,24) -> Pin<Box<dyn Future<Output = anyhow::Result<()>> + 'e>> {25todo!()26}27}2829impl VhostUserConnectionTrait for VhostUserStream {30fn run_req_handler<'e>(31self,32_handler: Box<dyn vmm_vhost::Backend>,33_ex: &'e Executor,34) -> Pin<Box<dyn Future<Output = anyhow::Result<()>> + 'e>> {35todo!()36}37}383940