Skip to main content

enqueue_disconnect

Function enqueue_disconnect 

fn enqueue_disconnect(
    outbound: &mut PacketWriter<GrowBuffer>,
    reason_code: ReasonCode,
) -> bool
Available on crate feature tokio only.
Expand description

Enqueues a DISCONNECT with reason_code. Returns whether it can be flushed.