• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2022 The Chromium OS Authors. All rights reserved.
2 // SPDX-License-Identifier: Apache-2.0
3 
4 //! Windows specific code that keeps rest of the code in the crate platform independent.
5 
6 use base::Tube;
7 
8 /// Alias to enable platform independent code.
9 pub type SystemStream = Tube;
10 
11 cfg_if::cfg_if! {
12     if #[cfg(feature = "device")] {
13         use crate::connection::TubeEndpoint;
14         use crate::message::{MasterReq, SlaveReq};
15 
16         pub(crate) type SlaveFsCacheReqSocket = TubeEndpoint<SlaveReq>;
17         pub(crate) type MasterReqEndpoint = TubeEndpoint<MasterReq>;
18     }
19 }
20 
21 /// Collection of platform-specific methods that  SystemListener  provides.
22 pub(crate) trait SystemListenerExt {}
23