Trait NSURLSessionDataDelegate

Source
pub unsafe trait NSURLSessionDataDelegate: NSURLSessionTaskDelegate {
    // Provided methods
    unsafe fn URLSession_dataTask_didReceiveResponse_completionHandler(
        &self,
        session: &NSURLSession,
        data_task: &NSURLSessionDataTask,
        response: &NSURLResponse,
        completion_handler: &DynBlock<dyn Fn(NSURLSessionResponseDisposition)>,
    )
       where Self: Sized + Message { ... }
    unsafe fn URLSession_dataTask_didBecomeDownloadTask(
        &self,
        session: &NSURLSession,
        data_task: &NSURLSessionDataTask,
        download_task: &NSURLSessionDownloadTask,
    )
       where Self: Sized + Message { ... }
    unsafe fn URLSession_dataTask_didBecomeStreamTask(
        &self,
        session: &NSURLSession,
        data_task: &NSURLSessionDataTask,
        stream_task: &NSURLSessionStreamTask,
    )
       where Self: Sized + Message { ... }
    unsafe fn URLSession_dataTask_didReceiveData(
        &self,
        session: &NSURLSession,
        data_task: &NSURLSessionDataTask,
        data: &NSData,
    )
       where Self: Sized + Message { ... }
    unsafe fn URLSession_dataTask_willCacheResponse_completionHandler(
        &self,
        session: &NSURLSession,
        data_task: &NSURLSessionDataTask,
        proposed_response: &NSCachedURLResponse,
        completion_handler: &DynBlock<dyn Fn(*mut NSCachedURLResponse)>,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature NSURLSession only.
Expand description

Provided Methods§

Source

unsafe fn URLSession_dataTask_didReceiveResponse_completionHandler( &self, session: &NSURLSession, data_task: &NSURLSessionDataTask, response: &NSURLResponse, completion_handler: &DynBlock<dyn Fn(NSURLSessionResponseDisposition)>, )
where Self: Sized + Message,

Available on crate features NSURLResponse and block2 only.
Source

unsafe fn URLSession_dataTask_didBecomeDownloadTask( &self, session: &NSURLSession, data_task: &NSURLSessionDataTask, download_task: &NSURLSessionDownloadTask, )
where Self: Sized + Message,

Source

unsafe fn URLSession_dataTask_didBecomeStreamTask( &self, session: &NSURLSession, data_task: &NSURLSessionDataTask, stream_task: &NSURLSessionStreamTask, )
where Self: Sized + Message,

Source

unsafe fn URLSession_dataTask_didReceiveData( &self, session: &NSURLSession, data_task: &NSURLSessionDataTask, data: &NSData, )
where Self: Sized + Message,

Available on crate feature NSData only.
Source

unsafe fn URLSession_dataTask_willCacheResponse_completionHandler( &self, session: &NSURLSession, data_task: &NSURLSessionDataTask, proposed_response: &NSCachedURLResponse, completion_handler: &DynBlock<dyn Fn(*mut NSCachedURLResponse)>, )
where Self: Sized + Message,

Available on crate features NSURLCache and block2 only.

Trait Implementations§

Source§

impl ProtocolType for dyn NSURLSessionDataDelegate

Source§

const NAME: &'static str = "NSURLSessionDataDelegate"

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
Source§

impl<T> ImplementedBy<T> for dyn NSURLSessionDataDelegate

Implementations on Foreign Types§

Source§

impl<T> NSURLSessionDataDelegate for ProtocolObject<T>

Implementors§