Skip to main content

write_content_range

Function write_content_range 

Source
pub fn write_content_range(
    r: ByteRange,
    complete: Option<u64>,
    out: &mut impl Sink,
) -> Result<(), WriteError>
Expand description

Writes bytes first-last/complete, or bytes first-last/* when the complete length is unknown.

ยงErrors

WriteError::OutOfRange when end < start or end >= complete; WriteError::Full (nothing written when the sink reports its room).