Struct planetkit::net::NetworkPeers [] [src]

pub struct NetworkPeers<G> {
    pub peers: Vec<NetworkPeer<G>>,
    pub new_peers: VecDeque<PeerId>,
}

World-global resource for network peers.

Fields

Trait Implementations

impl<G: GameMessage> AutoResource for NetworkPeers<G>
[src]

[src]

[src]

Ensure the given resource exists in the world. Returns the resource for writing; this should only be used during initialization, so contention shouldn't be an issue. Read more