Trait NSURLSessionDelegate

Source
pub unsafe trait NSURLSessionDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn URLSession_didBecomeInvalidWithError(
        &self,
        session: &NSURLSession,
        error: Option<&NSError>,
    )
       where Self: Sized + Message { ... }
    unsafe fn URLSession_didReceiveChallenge_completionHandler(
        &self,
        session: &NSURLSession,
        challenge: &NSURLAuthenticationChallenge,
        completion_handler: &DynBlock<dyn Fn(NSURLSessionAuthChallengeDisposition, *mut NSURLCredential)>,
    )
       where Self: Sized + Message { ... }
    unsafe fn URLSessionDidFinishEventsForBackgroundURLSession(
        &self,
        session: &NSURLSession,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature NSURLSession only.
Expand description

Provided Methods§

Source

unsafe fn URLSession_didBecomeInvalidWithError( &self, session: &NSURLSession, error: Option<&NSError>, )
where Self: Sized + Message,

Available on crate feature NSError only.
Source

unsafe fn URLSession_didReceiveChallenge_completionHandler( &self, session: &NSURLSession, challenge: &NSURLAuthenticationChallenge, completion_handler: &DynBlock<dyn Fn(NSURLSessionAuthChallengeDisposition, *mut NSURLCredential)>, )
where Self: Sized + Message,

Available on crate features NSURLAuthenticationChallenge and NSURLCredential and block2 only.
Source

unsafe fn URLSessionDidFinishEventsForBackgroundURLSession( &self, session: &NSURLSession, )
where Self: Sized + Message,

Trait Implementations§

Source§

impl ProtocolType for dyn NSURLSessionDelegate

Source§

const NAME: &'static str = "NSURLSessionDelegate"

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 NSURLSessionDelegate

Implementations on Foreign Types§

Source§

impl<T> NSURLSessionDelegate for ProtocolObject<T>

Implementors§