//! NNG pipe-event bridge.
//!
//! Pipe events are the way NNG tells us a connection came up or was
//! lost at the transport layer. We translate them into [`PipeEvent`]
//! values and hand them to whichever driver owns the connection, so
//! state transitions (`Connected` / `ConnectionLost` / …) fire at
//! the right time without the driver having to poll anything.
/// What the NNG pipe-event callback turns into, stripped of the C types.
/// Type-erased handler the driver installs when calling
/// `ConnectionManager::connect`. Invoked synchronously from an NNG
/// thread — don't block inside it. Mainly used to shove events into
/// an `mpsc::UnboundedSender<Cmd>` variant.
pub type PipeEventHandler =
Arc;