mirror of
https://codeberg.org/steam-vent/proto.git
synced 2026-06-03 10:14:08 +02:00
move GCHandshake trait to proto-common
This commit is contained in:
parent
d936a6049b
commit
1156dbf774
1 changed files with 10 additions and 0 deletions
|
|
@ -103,3 +103,13 @@ pub trait JobMultiple {
|
||||||
/// If the job has completed
|
/// If the job has completed
|
||||||
fn completed(&self) -> bool;
|
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;
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue