mirror of
https://codeberg.org/steam-vent/proto.git
synced 2026-06-03 10:14:08 +02:00
add docs to GCHandshake
This commit is contained in:
parent
c7fd29f600
commit
890d27a421
1 changed files with 5 additions and 0 deletions
|
|
@ -104,12 +104,17 @@ pub trait JobMultiple {
|
|||
fn completed(&self) -> bool;
|
||||
}
|
||||
|
||||
/// Trait for game-specific game-coordinator handshakes
|
||||
pub trait GCHandshake {
|
||||
/// The type of message send to the game-coordinator during handshake
|
||||
type Hello: RpcMessageWithKind + Send;
|
||||
|
||||
/// The expected response type from the game-coordinator to our hello
|
||||
type Welcome: RpcMessageWithKind + Send;
|
||||
|
||||
/// The steam app id we're getting the game-coordinator for
|
||||
fn app_id(&self) -> u32;
|
||||
|
||||
/// An instance of the hello message to send
|
||||
fn hello(&self) -> Self::Hello;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue