Skip to main content

peer_for

Function peer_for 

Source
pub(crate) fn peer_for<'a>(
    peers: &'a [LanInstance],
    lead: &str,
    machine: &str,
) -> Result<&'a LanInstance, &'static str>
Expand description

The one LAN peer that is machine and lists lead, or why none: a machine that is not a peer, or lists no such agent, or is two peers of that name (the seat then has to say which).