Trait objc2_foundation::NSURLDownloadDelegate

source ·
pub unsafe trait NSURLDownloadDelegate: NSObjectProtocol {
Show 14 methods // Provided methods unsafe fn downloadDidBegin(&self, download: &NSURLDownload) where Self: Sized + Message { ... } unsafe fn download_willSendRequest_redirectResponse( &self, download: &NSURLDownload, request: &NSURLRequest, redirect_response: Option<&NSURLResponse> ) -> Option<Id<NSURLRequest>> where Self: Sized + Message { ... } unsafe fn download_canAuthenticateAgainstProtectionSpace( &self, connection: &NSURLDownload, protection_space: &NSURLProtectionSpace ) -> bool where Self: Sized + Message { ... } unsafe fn download_didReceiveAuthenticationChallenge( &self, download: &NSURLDownload, challenge: &NSURLAuthenticationChallenge ) where Self: Sized + Message { ... } unsafe fn download_didCancelAuthenticationChallenge( &self, download: &NSURLDownload, challenge: &NSURLAuthenticationChallenge ) where Self: Sized + Message { ... } unsafe fn downloadShouldUseCredentialStorage( &self, download: &NSURLDownload ) -> bool where Self: Sized + Message { ... } unsafe fn download_didReceiveResponse( &self, download: &NSURLDownload, response: &NSURLResponse ) where Self: Sized + Message { ... } unsafe fn download_willResumeWithResponse_fromByte( &self, download: &NSURLDownload, response: &NSURLResponse, starting_byte: c_longlong ) where Self: Sized + Message { ... } unsafe fn download_didReceiveDataOfLength( &self, download: &NSURLDownload, length: NSUInteger ) where Self: Sized + Message { ... } unsafe fn download_shouldDecodeSourceDataOfMIMEType( &self, download: &NSURLDownload, encoding_type: &NSString ) -> bool where Self: Sized + Message { ... } unsafe fn download_decideDestinationWithSuggestedFilename( &self, download: &NSURLDownload, filename: &NSString ) where Self: Sized + Message { ... } unsafe fn download_didCreateDestination( &self, download: &NSURLDownload, path: &NSString ) where Self: Sized + Message { ... } unsafe fn downloadDidFinish(&self, download: &NSURLDownload) where Self: Sized + Message { ... } unsafe fn download_didFailWithError( &self, download: &NSURLDownload, error: &NSError ) where Self: Sized + Message { ... }
}
Available on crate feature NSURLDownload only.

Provided Methods§

source

unsafe fn downloadDidBegin(&self, download: &NSURLDownload)
where Self: Sized + Message,

source

unsafe fn download_willSendRequest_redirectResponse( &self, download: &NSURLDownload, request: &NSURLRequest, redirect_response: Option<&NSURLResponse> ) -> Option<Id<NSURLRequest>>
where Self: Sized + Message,

Available on crate features NSURLRequest and NSURLResponse only.
source

unsafe fn download_canAuthenticateAgainstProtectionSpace( &self, connection: &NSURLDownload, protection_space: &NSURLProtectionSpace ) -> bool
where Self: Sized + Message,

Available on crate feature NSURLProtectionSpace only.
source

unsafe fn download_didReceiveAuthenticationChallenge( &self, download: &NSURLDownload, challenge: &NSURLAuthenticationChallenge )
where Self: Sized + Message,

Available on crate feature NSURLAuthenticationChallenge only.
source

unsafe fn download_didCancelAuthenticationChallenge( &self, download: &NSURLDownload, challenge: &NSURLAuthenticationChallenge )
where Self: Sized + Message,

Available on crate feature NSURLAuthenticationChallenge only.
source

unsafe fn downloadShouldUseCredentialStorage( &self, download: &NSURLDownload ) -> bool
where Self: Sized + Message,

source

unsafe fn download_didReceiveResponse( &self, download: &NSURLDownload, response: &NSURLResponse )
where Self: Sized + Message,

Available on crate feature NSURLResponse only.
source

unsafe fn download_willResumeWithResponse_fromByte( &self, download: &NSURLDownload, response: &NSURLResponse, starting_byte: c_longlong )
where Self: Sized + Message,

Available on crate feature NSURLResponse only.
source

unsafe fn download_didReceiveDataOfLength( &self, download: &NSURLDownload, length: NSUInteger )
where Self: Sized + Message,

source

unsafe fn download_shouldDecodeSourceDataOfMIMEType( &self, download: &NSURLDownload, encoding_type: &NSString ) -> bool
where Self: Sized + Message,

Available on crate feature NSString only.
source

unsafe fn download_decideDestinationWithSuggestedFilename( &self, download: &NSURLDownload, filename: &NSString )
where Self: Sized + Message,

Available on crate feature NSString only.
source

unsafe fn download_didCreateDestination( &self, download: &NSURLDownload, path: &NSString )
where Self: Sized + Message,

Available on crate feature NSString only.
source

unsafe fn downloadDidFinish(&self, download: &NSURLDownload)
where Self: Sized + Message,

source

unsafe fn download_didFailWithError( &self, download: &NSURLDownload, error: &NSError )
where Self: Sized + Message,

Available on crate feature NSError only.

Trait Implementations§

source§

impl ProtocolType for dyn NSURLDownloadDelegate

source§

const NAME: &'static str = "NSURLDownloadDelegate"

The name of the Objective-C protocol that this type represents.
source§

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

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

impl<T> ImplementedBy<T> for dyn NSURLDownloadDelegate

Implementations on Foreign Types§

source§

impl<T> NSURLDownloadDelegate for ProtocolObject<T>

Implementors§