Trait webkit2gtk::DownloadExt
source · pub trait DownloadExt: IsA<Download> + Sealed + 'static {
Show 20 methods
// Provided methods
fn cancel(&self) { ... }
fn allows_overwrite(&self) -> bool { ... }
fn destination(&self) -> Option<GString> { ... }
fn elapsed_time(&self) -> f64 { ... }
fn estimated_progress(&self) -> f64 { ... }
fn received_data_length(&self) -> u64 { ... }
fn request(&self) -> Option<URIRequest> { ... }
fn response(&self) -> Option<URIResponse> { ... }
fn web_view(&self) -> Option<WebView> { ... }
fn set_allow_overwrite(&self, allowed: bool) { ... }
fn set_destination(&self, destination: &str) { ... }
fn connect_created_destination<F: Fn(&Self, &str) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_decide_destination<F: Fn(&Self, &str) -> bool + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
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_allow_overwrite_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_destination_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_estimated_progress_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_response_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
}
Provided Methods§
fn cancel(&self)
sourcefn allows_overwrite(&self) -> bool
fn allows_overwrite(&self) -> bool
Available on crate feature
v2_6
only.fn destination(&self) -> Option<GString>
fn elapsed_time(&self) -> f64
fn estimated_progress(&self) -> f64
fn received_data_length(&self) -> u64
fn request(&self) -> Option<URIRequest>
fn response(&self) -> Option<URIResponse>
fn web_view(&self) -> Option<WebView>
sourcefn set_allow_overwrite(&self, allowed: bool)
fn set_allow_overwrite(&self, allowed: bool)
Available on crate feature
v2_6
only.fn set_destination(&self, destination: &str)
fn connect_created_destination<F: Fn(&Self, &str) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_decide_destination<F: Fn(&Self, &str) -> bool + 'static>( &self, f: F ) -> SignalHandlerId
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
sourcefn connect_allow_overwrite_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_allow_overwrite_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
Available on crate feature
v2_6
only.fn connect_destination_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_estimated_progress_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_response_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
Object Safety§
This trait is not object safe.