[][src]Trait webkit2gtk::WebResourceExt

pub trait WebResourceExt: 'static {
    fn get_data<P: IsA<Cancellable>, Q: FnOnce(Result<(Vec<u8>, usize), Error>) + Send + 'static>(
        &self,
        cancellable: Option<&P>,
        callback: Q
    );
fn get_response(&self) -> Option<URIResponse>;
fn get_uri(&self) -> Option<GString>;
fn connect_failed<F: Fn(&Self, &Error) + '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_property_response_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_uri_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Required methods

fn get_data<P: IsA<Cancellable>, Q: FnOnce(Result<(Vec<u8>, usize), Error>) + Send + 'static>(
    &self,
    cancellable: Option<&P>,
    callback: Q
)

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

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

fn connect_failed<F: Fn(&Self, &Error) + '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_property_response_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

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

Loading content...

Implementors

impl<O: IsA<WebResource>> WebResourceExt for O[src]

Loading content...