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<Retained<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§
unsafe fn downloadDidBegin(&self, download: &NSURLDownload)
unsafe fn download_willSendRequest_redirectResponse( &self, download: &NSURLDownload, request: &NSURLRequest, redirect_response: Option<&NSURLResponse> ) -> Option<Retained<NSURLRequest>>
Available on crate features
NSURLRequest
and NSURLResponse
only.unsafe fn download_canAuthenticateAgainstProtectionSpace( &self, connection: &NSURLDownload, protection_space: &NSURLProtectionSpace ) -> bool
Available on crate feature
NSURLProtectionSpace
only.unsafe fn download_didReceiveAuthenticationChallenge( &self, download: &NSURLDownload, challenge: &NSURLAuthenticationChallenge )
Available on crate feature
NSURLAuthenticationChallenge
only.unsafe fn download_didCancelAuthenticationChallenge( &self, download: &NSURLDownload, challenge: &NSURLAuthenticationChallenge )
Available on crate feature
NSURLAuthenticationChallenge
only.unsafe fn downloadShouldUseCredentialStorage( &self, download: &NSURLDownload ) -> bool
unsafe fn download_didReceiveResponse( &self, download: &NSURLDownload, response: &NSURLResponse )
Available on crate feature
NSURLResponse
only.unsafe fn download_willResumeWithResponse_fromByte( &self, download: &NSURLDownload, response: &NSURLResponse, starting_byte: c_longlong )
Available on crate feature
NSURLResponse
only.unsafe fn download_didReceiveDataOfLength( &self, download: &NSURLDownload, length: NSUInteger )
unsafe fn download_shouldDecodeSourceDataOfMIMEType( &self, download: &NSURLDownload, encoding_type: &NSString ) -> bool
Available on crate feature
NSString
only.unsafe fn download_decideDestinationWithSuggestedFilename( &self, download: &NSURLDownload, filename: &NSString )
Available on crate feature
NSString
only.unsafe fn download_didCreateDestination( &self, download: &NSURLDownload, path: &NSString )
Available on crate feature
NSString
only.unsafe fn downloadDidFinish(&self, download: &NSURLDownload)
unsafe fn download_didFailWithError( &self, download: &NSURLDownload, error: &NSError )
Available on crate feature
NSError
only.