//! The `ripsync --server` peer: speaks the protocol over stdin/stdout.
//!
//! Spawned on the remote host by the initiator's ssh command. It plays the
//! opposite role to whatever the initiator asked for: for [`Role::Push`] it is
//! the receiver (writing into the remote destination), for [`Role::Pull`] it is
//! the sender (reading the remote source). Every path it touches is confined under
//! the negotiated root by the receiver's containment checks.
use crateFilter;
use craterun_responder;
use crateIoDuplex;
use crate;
use crate::;
/// Run the server peer to completion, reading the protocol from stdin and writing
/// it to stdout. Diagnostics must go to stderr (never stdout, which is the wire).
///
/// # Errors
///
/// Returns a handshake, protocol, walk, or I/O error.