pub trait WebResourceExt: IsA<WebResource> + Sealed + 'static {
    // Provided methods
    fn data<P: FnOnce(Result<Vec<u8>, Error>) + 'static>(
        &self,
        cancellable: Option<&impl IsA<Cancellable>>,
        callback: P
    ) { ... }
    fn data_future(
        &self
    ) -> Pin<Box_<dyn Future<Output = Result<Vec<u8>, Error>> + 'static>> { ... }
    fn response(&self) -> Option<URIResponse> { ... }
    fn uri(&self) -> Option<GString> { ... }
    fn connect_failed<F: Fn(&Self, &Error) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId { ... }
    fn connect_failed_with_tls_errors<F: Fn(&Self, &TlsCertificate, TlsCertificateFlags) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId { ... }
    fn connect_finished<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... }
    fn connect_received_data<F: Fn(&Self, u64) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId { ... }
    fn connect_sent_request<F: Fn(&Self, &URIRequest, &URIResponse) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId { ... }
    fn connect_response_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId { ... }
    fn connect_uri_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId { ... }
}

Provided Methods§

source

fn data<P: FnOnce(Result<Vec<u8>, Error>) + 'static>( &self, cancellable: Option<&impl IsA<Cancellable>>, callback: P )

source

fn data_future( &self ) -> Pin<Box_<dyn Future<Output = Result<Vec<u8>, Error>> + 'static>>

source

fn response(&self) -> Option<URIResponse>

source

fn uri(&self) -> Option<GString>

source

fn connect_failed<F: Fn(&Self, &Error) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_failed_with_tls_errors<F: Fn(&Self, &TlsCertificate, TlsCertificateFlags) + 'static>( &self, f: F ) -> SignalHandlerId

Available on crate feature v2_8 only.
source

fn connect_finished<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

fn connect_received_data<F: Fn(&Self, u64) + 'static>( &self, f: F ) -> SignalHandlerId

👎Deprecated: Since 2.40
source

fn connect_sent_request<F: Fn(&Self, &URIRequest, &URIResponse) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_response_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_uri_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Object Safety§

This trait is not object safe.

Implementors§