Skip to main content

GithubJobLogHttpBody

Trait GithubJobLogHttpBody 

Source
pub trait GithubJobLogHttpBody {
    // Required method
    fn next_chunk(
        &mut self,
        maximum_bytes: usize,
        cancellation: &CancellationToken,
    ) -> Result<Option<Vec<u8>>, GithubJobLogHttpError>;
}
Expand description

Incremental response body returned by a job-log HTTP adapter.

Required Methods§

Source

fn next_chunk( &mut self, maximum_bytes: usize, cancellation: &CancellationToken, ) -> Result<Option<Vec<u8>>, GithubJobLogHttpError>

Read at most maximum_bytes, honoring cancellation and the request-global hard deadline.

§Errors

Returns only a redacted transport category. Returning more than the requested maximum is treated as a contract violation by the fetcher.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§