Function handle_command
pub(super) fn handle_command(
cmd: Command,
client: &mut Client<JournaledSession>,
outbound: &mut PacketWriter<GrowBuffer>,
pending: &mut Pending,
outbound_aliases: &mut OutboundAliases,
queued_waiting: &mut Vec<Sender<Result<(), Error>>>,
) -> Result<(), Error>Available on crate feature
tokio only.Expand description
Handles one user command on a live connection.
Operation-level failures (capabilities, packet-id exhaustion, un-encodable properties, oversized payload) resolve only that operation’s future. They never end the connection.
§Errors
Returns the error of pump_session. The connection must then end.