Skip to main content

WebDownloadDelegate

Trait WebDownloadDelegate 

Source
pub unsafe trait WebDownloadDelegate: NSURLDownloadDelegate {
    // Provided method
    unsafe fn downloadWindowForAuthenticationSheet(
        &self,
        download: Option<&WebDownload>,
        mtm: MainThreadMarker,
    ) -> Option<Retained<NSWindow>>
       where Self: Sized + Message { ... }
}
👎Deprecated
Available on crate feature WebDownload only.
Expand description

The WebDownloadDelegate delegate has one extra method used to choose the right window when automatically prompting with a sheet.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn downloadWindowForAuthenticationSheet( &self, download: Option<&WebDownload>, mtm: MainThreadMarker, ) -> Option<Retained<NSWindow>>
where Self: Sized + Message,

👎Deprecated
Available on macOS and crate feature objc2-app-kit only.
§Safety

download might not allow None.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn WebDownloadDelegate

Source§

impl ProtocolType for dyn WebDownloadDelegate

Source§

const NAME: &'static str = "WebDownloadDelegate"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> WebDownloadDelegate for ProtocolObject<T>

Implementors§