2021-12-30 00:14:23 +00:00
|
|
|
/*
|
2022-06-02 18:51:06 +00:00
|
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
2021-12-30 00:14:23 +00:00
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This source code is licensed under the BSD-style license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
*/
|
2022-10-26 19:18:14 +00:00
|
|
|
|
2022-06-30 21:56:20 +00:00
|
|
|
use reverie::GlobalTool;
|
|
|
|
use reverie::Pid;
|
2021-12-30 00:14:23 +00:00
|
|
|
|
|
|
|
use crate::config::Config;
|
|
|
|
|
|
|
|
#[derive(Debug, Default)]
|
|
|
|
pub struct GlobalState;
|
|
|
|
|
|
|
|
#[reverie::global_tool]
|
|
|
|
impl GlobalTool for GlobalState {
|
|
|
|
type Request = ();
|
|
|
|
type Response = ();
|
|
|
|
type Config = Config;
|
|
|
|
|
|
|
|
async fn receive_rpc(&self, _pid: Pid, _req: Self::Request) {}
|
|
|
|
}
|