fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::result::Result<(), std::fmt::Error> {
const PAYLOAD_OFFSET_V1_WITHOUT_STREAM_ID: usize = LENGTH_OFFSET_V1 + 2; // (everything before length), length.
const PAYLOAD_OFFSET_V1_WITH_STREAM_ID: usize = LENGTH_OFFSET_V1 + 2 + 2; // (everything before length), length, stream_id.
/// Max amount of payload data that can be stored in a V1 cell body, when not including a stream ID.
/// Max amount of payload data that can be stored in a V1 cell body, when including a stream ID.
pub fn from_singleton_body(version: RelayCellFormat, body: BoxedCellBody) -> Result<Self> {
// (It would be simpler to use NestedWriter at this point, but it uses an internal Vec that we are trying to avoid.)