pub unsafe trait NSURLSessionDownloadDelegate: NSURLSessionTaskDelegate {
// Provided methods
fn URLSession_downloadTask_didFinishDownloadingToURL(
&self,
session: &NSURLSession,
download_task: &NSURLSessionDownloadTask,
location: &NSURL,
)
where Self: Sized + Message { ... }
fn URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite(
&self,
session: &NSURLSession,
download_task: &NSURLSessionDownloadTask,
bytes_written: i64,
total_bytes_written: i64,
total_bytes_expected_to_write: i64,
)
where Self: Sized + Message { ... }
fn URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes(
&self,
session: &NSURLSession,
download_task: &NSURLSessionDownloadTask,
file_offset: i64,
expected_total_bytes: i64,
)
where Self: Sized + Message { ... }
}Available on crate feature
NSURLSession only.Expand description
Provided Methods§
fn URLSession_downloadTask_didFinishDownloadingToURL( &self, session: &NSURLSession, download_task: &NSURLSessionDownloadTask, location: &NSURL, )
Available on crate feature
NSURL only.fn URLSession_downloadTask_didWriteData_totalBytesWritten_totalBytesExpectedToWrite( &self, session: &NSURLSession, download_task: &NSURLSessionDownloadTask, bytes_written: i64, total_bytes_written: i64, total_bytes_expected_to_write: i64, )
fn URLSession_downloadTask_didResumeAtOffset_expectedTotalBytes( &self, session: &NSURLSession, download_task: &NSURLSessionDownloadTask, file_offset: i64, expected_total_bytes: i64, )
Trait Implementations§
Source§impl ProtocolType for dyn NSURLSessionDownloadDelegate
impl ProtocolType for dyn NSURLSessionDownloadDelegate
impl<T> ImplementedBy<T> for dyn NSURLSessionDownloadDelegate
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".