pub enum LinkRole {
Host,
Guest,
}Expand description
Which side of a link connection the local player is.
Link protocols with an asymmetric handshake need a host/guest distinction — the original Game Boy link cable called it the “internal clock” (the hosting side: drives synchronization, wins simultaneous-request ties) versus the “external clock” (the joining side: starts the handshake, defers to the host). Games map this onto their own roles (the link club, for example, calls the two sides the “player” and “friend” warp spots).
Variants§
Host
The clocking (hosting) side of the connection.
Guest
The joining (guest) side of the connection.
Trait Implementations§
impl Copy for LinkRole
impl Eq for LinkRole
impl StructuralPartialEq for LinkRole
Auto Trait Implementations§
impl Freeze for LinkRole
impl RefUnwindSafe for LinkRole
impl Send for LinkRole
impl Sync for LinkRole
impl Unpin for LinkRole
impl UnsafeUnpin for LinkRole
impl UnwindSafe for LinkRole
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more