Function drain_queued_commands
pub(super) fn drain_queued_commands(
queued: &mut VecDeque<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
Drains commands queued while offline onto a freshly established connection.
ยงErrors
Returns the error of handle_command. The connection must then end.