Merge pull request 'Move GCHandshake trait to proto-common' (#1) from zargovv/proto:main into main

Reviewed-on: https://codeberg.org/steam-vent/proto/pulls/1
This commit is contained in:
Robin Appelman 2025-10-18 20:48:12 +02:00
commit 926012e286

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;
}