Trait net_traits::FetchResponseListener

source ·
pub trait FetchResponseListener {
    // Required methods
    fn process_request_body(&mut self);
    fn process_request_eof(&mut self);
    fn process_response(
        &mut self,
        metadata: Result<FetchMetadata, NetworkError>,
    );
    fn process_response_chunk(&mut self, chunk: Vec<u8>);
    fn process_response_eof(
        &mut self,
        response: Result<ResourceFetchTiming, NetworkError>,
    );
    fn resource_timing(&self) -> &ResourceFetchTiming;
    fn resource_timing_mut(&mut self) -> &mut ResourceFetchTiming;
    fn submit_resource_timing(&mut self);
}

Required Methods§

Implementors§