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::ProcId;
16use crate::RefClient;
17use crate::mailbox::ChannelAddr;
18
19/// Messages relating to mailbox administration.
20#[derive(
21    Handler,
22    HandleClient,
23    RefClient,
24    Debug,
25    Serialize,
26    Deserialize,
27    Clone,
28    PartialEq,
29    typeuri::Named
30)]
31pub enum MailboxAdminMessage {
32    /// An address update.
33    UpdateAddress {
34        /// The ID of the proc.
35        proc_id: ProcId,
36
37        /// The address at which it listens.
38        addr: ChannelAddr,
39    },
40}