//! Implementation of the `NULL` procedure (procedure 0) for port mapper protocol
//! as defined in RFC 1057 A.2 section.
//! <https://datatracker.ietf.org/doc/rfc1057/>.
use Write;
use debug;
use crate;
/// Handles `PMAPPROC_NULL` procedure.
///
/// `NULL` is a no-operation RPC call used to check if the portmapper is responding.
/// Takes no arguments and returns empty reply with successful status.
///
/// # Arguments
///
/// * `xid` - RPC transaction ID
/// * `output` - Output stream for writing the response
///
/// # Returns
///
/// * `Result<(), anyhow::Error>` - Ok(()) on success or an error