Trait net_traits::FetchResponseListener

source ·
pub trait FetchResponseListener {
    // Required methods
    fn process_request_body(&mut self, request_id: RequestId);
    fn process_request_eof(&mut self, request_id: RequestId);
    fn process_response(
        &mut self,
        request_id: RequestId,
        metadata: Result<FetchMetadata, NetworkError>,
    );
    fn process_response_chunk(&mut self, request_id: RequestId, chunk: Vec<u8>);
    fn process_response_eof(
        &mut self,
        request_id: RequestId,
        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§

source

fn process_request_body(&mut self, request_id: RequestId)

source

fn process_request_eof(&mut self, request_id: RequestId)

source

fn process_response( &mut self, request_id: RequestId, metadata: Result<FetchMetadata, NetworkError>, )

source

fn process_response_chunk(&mut self, request_id: RequestId, chunk: Vec<u8>)

source

fn process_response_eof( &mut self, request_id: RequestId, response: Result<ResourceFetchTiming, NetworkError>, )

source

fn resource_timing(&self) -> &ResourceFetchTiming

source

fn resource_timing_mut(&mut self) -> &mut ResourceFetchTiming

source

fn submit_resource_timing(&mut self)

Implementors§