Skip to main content

respond_published

Function respond_published 

Source
pub fn respond_published<R: Repository>(
    socket: &impl AsFd,
    encoder: &mut PublishedResponse<'_, R>,
    staging: &mut [u8],
) -> Result<()>
Expand description

Stream a publication response with its known complete length. Each cursor pins its provider; failed writes cancel only that response. Close the socket on errors, including a provider that was changed/truncated after publication.