move GCHandshake trait to proto-common

This commit is contained in:
Max Zargov 2025-10-18 02:59:15 +05:00
commit 1156dbf774

View file

@ -103,3 +103,13 @@ pub trait JobMultiple {
/// If the job has completed
fn completed(&self) -> bool;
}
pub trait GCHandshake {
type Hello: RpcMessageWithKind + Send;
type Welcome: RpcMessageWithKind + Send;
fn app_id(&self) -> u32;
fn hello(&self) -> Self::Hello;
}