hyperactor/mailbox/
mailbox_admin_message.rs

1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 * All rights reserved.
4 *
5 * This source code is licensed under the BSD-style license found in the
6 * LICENSE file in the root directory of this source tree.
7 */
8
9use serde::Deserialize;
10use serde::Serialize;
11
12pub use crate as hyperactor;
13use crate::HandleClient;
14use crate::Handler;
15use crate::Named;
16use crate::ProcId;
17use crate::RefClient;
18use crate::mailbox::ChannelAddr;
19
20/// Messages relating to mailbox administration.
21#[derive(
22    Handler,
23    HandleClient,
24    RefClient,
25    Debug,
26    Serialize,
27    Deserialize,
28    Clone,
29    PartialEq,
30    Named
31)]
32pub enum MailboxAdminMessage {
33    /// An address update.
34    UpdateAddress {
35        /// The ID of the proc.
36        proc_id: ProcId,
37
38        /// The address at which it listens.
39        addr: ChannelAddr,
40    },
41}