Skip to content

Commit 9eaed33

Browse files
mailbox: add Clone constraint to MailboxServer (#789)
Summary: Pull Request resolved: #789 add a `Clone` constraint to `MailboxServer`, will use upstack. Reviewed By: mariusae Differential Revision: D79806806 fbshipit-source-id: 90a4fc98547ab954593f322cba5eb0111cd14e56
1 parent 97250d4 commit 9eaed33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hyperactor/src/mailbox.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ impl Future for MailboxServerHandle {
840840

841841
/// Serve a port on the provided [`channel::Rx`]. This dispatches all
842842
/// channel messages directly to the port.
843-
pub trait MailboxServer: MailboxSender + Sized + 'static {
843+
pub trait MailboxServer: MailboxSender + Clone + Sized + 'static {
844844
/// Serve the provided port on the given channel on this sender on
845845
/// a background task which may be joined with the returned handle.
846846
/// The task fails on any send error.
@@ -887,7 +887,7 @@ pub trait MailboxServer: MailboxSender + Sized + 'static {
887887
}
888888
}
889889

890-
impl<T: MailboxSender + Sized + Sync + Send + 'static> MailboxServer for T {}
890+
impl<T: MailboxSender + Clone + Sized + Sync + Send + 'static> MailboxServer for T {}
891891

892892
/// A mailbox server client that transmits messages on a Tx channel.
893893
#[derive(Debug)]

0 commit comments

Comments
 (0)