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§
Sourcefn next_chunk(
&mut self,
maximum_bytes: usize,
cancellation: &CancellationToken,
) -> Result<Option<Vec<u8>>, GithubJobLogHttpError>
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".