//! Small helpers shared between the async handles.
use oneshot;
use crate;
/// Await a reply from a driver command, converting a dropped channel
/// into a clear `MotorcortexError::Connection("driver dropped reply
/// channel")`. Every Cmd / SubCmd path uses this so the error is
/// uniform.
pub async