longhuanlin/multipart-stream/writer does not have a README file

    MultipartPlan

    pub struct MultipartPlan {
    // private fields
    } derive(Eq,
    Debug
    )

    Exact, validated multipart framing plan suitable for an HTTP Content-Length header or admission-control decision.

    MultipartPlan::content_length

    fn MultipartPlan::content_length(self : MultipartPlan) -> Int64

    MultipartPlan::parts

    MultipartWriter

    pub struct MultipartWriter {
    // private fields
    }

    MultipartWriter::bytes_emitted

    fn MultipartWriter::bytes_emitted(self : MultipartWriter) -> Int64

    MultipartWriter::content_type

    fn MultipartWriter::content_type(self : MultipartWriter) -> String

    MultipartWriter::write

    PlannedEmitter

    pub struct PlannedEmitter {
    // private fields
    }

    State-machine wrapper around MultipartWriter that binds one emitted message to a previously validated content-length plan.

    PlannedEmitter::begin_next

    PlannedEmitter::write_chunk

    PlannedPart

    pub struct PlannedPart {
    // private fields
    } derive(Eq,
    Debug
    )

    A body whose length is known before multipart framing is emitted. The plan intentionally stores metadata and a count only; body ownership stays with the transport application.

    plan

    Calculate the exact output size for bodies that will be supplied later to MultipartWriter. No body bytes are copied or buffered by this operation.