Function encode
pub(super) fn encode<P: Constraint, S: Sink>(
reason_code: ReasonCode,
properties: &Properties<P>,
w: &mut Writer<S>,
) -> Result<(), S::Error>Expand description
Encodes a “reason code plus optional properties” tail into the writer.
§Errors
Returns the sink’s error if it cannot take the bytes.