Trait webkit2gtk::WebResourceExt
source · 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§
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
sourcefn connect_failed_with_tls_errors<F: Fn(&Self, &TlsCertificate, TlsCertificateFlags) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_failed_with_tls_errors<F: Fn(&Self, &TlsCertificate, TlsCertificateFlags) + 'static>( &self, f: F ) -> SignalHandlerId
Available on crate feature
v2_8
only.fn connect_finished<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
sourcefn connect_received_data<F: Fn(&Self, u64) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_received_data<F: Fn(&Self, u64) + 'static>( &self, f: F ) -> SignalHandlerId
👎Deprecated: Since 2.40
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
Object Safety§
This trait is not object safe.