pub struct DownloadHandler(/* private fields */);Expand description
See _cef_download_handler_t for more documentation.
Implementations§
Source§impl DownloadHandler
impl DownloadHandler
pub fn new<T>(interface: T) -> Selfwhere
T: WrapDownloadHandler,
Trait Implementations§
Source§impl Clone for DownloadHandler
impl Clone for DownloadHandler
Source§fn clone(&self) -> DownloadHandler
fn clone(&self) -> DownloadHandler
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ConvertParam<*mut _cef_download_handler_t> for &DownloadHandler
impl ConvertParam<*mut _cef_download_handler_t> for &DownloadHandler
fn into_raw(self) -> *mut _cef_download_handler_t
Source§impl ConvertParam<*mut _cef_download_handler_t> for &mut DownloadHandler
impl ConvertParam<*mut _cef_download_handler_t> for &mut DownloadHandler
fn into_raw(self) -> *mut _cef_download_handler_t
Source§impl ConvertReturnValue<DownloadHandler> for *mut _cef_download_handler_t
impl ConvertReturnValue<DownloadHandler> for *mut _cef_download_handler_t
fn wrap_result(self) -> DownloadHandler
Source§impl From<DownloadHandler> for *mut _cef_download_handler_t
impl From<DownloadHandler> for *mut _cef_download_handler_t
Source§fn from(value: DownloadHandler) -> Self
fn from(value: DownloadHandler) -> Self
Converts to this type from the input type.
Source§impl ImplDownloadHandler for DownloadHandler
impl ImplDownloadHandler for DownloadHandler
Source§fn can_download(
&self,
browser: Option<&mut Browser>,
url: Option<&CefString>,
request_method: Option<&CefString>,
) -> c_int
fn can_download( &self, browser: Option<&mut Browser>, url: Option<&CefString>, request_method: Option<&CefString>, ) -> c_int
See
_cef_download_handler_t::can_download for more documentation.Source§fn on_before_download(
&self,
browser: Option<&mut Browser>,
download_item: Option<&mut DownloadItem>,
suggested_name: Option<&CefString>,
callback: Option<&mut BeforeDownloadCallback>,
) -> c_int
fn on_before_download( &self, browser: Option<&mut Browser>, download_item: Option<&mut DownloadItem>, suggested_name: Option<&CefString>, callback: Option<&mut BeforeDownloadCallback>, ) -> c_int
See
_cef_download_handler_t::on_before_download for more documentation.Source§fn on_download_updated(
&self,
browser: Option<&mut Browser>,
download_item: Option<&mut DownloadItem>,
callback: Option<&mut DownloadItemCallback>,
)
fn on_download_updated( &self, browser: Option<&mut Browser>, download_item: Option<&mut DownloadItem>, callback: Option<&mut DownloadItemCallback>, )
See
_cef_download_handler_t::on_download_updated for more documentation.fn get_raw(&self) -> *mut _cef_download_handler_t
fn init_methods(object: &mut _cef_download_handler_t)
Source§impl Rc for DownloadHandler
impl Rc for DownloadHandler
Source§fn as_base(&self) -> &_cef_base_ref_counted_t
fn as_base(&self) -> &_cef_base_ref_counted_t
Get the reference of cef_base_ref_counted_t.
Source§unsafe fn release(&self) -> bool
unsafe fn release(&self) -> bool
Decrease reference count by 1 and release the value if the count meets 0.
Reuturn
True if it is released. Read moreSource§fn has_one_ref(&self) -> bool
fn has_one_ref(&self) -> bool
True if the reference count is exactly 1.Source§fn has_at_least_one_ref(&self) -> bool
fn has_at_least_one_ref(&self) -> bool
True if the reference count is larger than 0.Auto Trait Implementations§
impl Freeze for DownloadHandler
impl RefUnwindSafe for DownloadHandler
impl Send for DownloadHandler
impl Sync for DownloadHandler
impl Unpin for DownloadHandler
impl UnwindSafe for DownloadHandler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more