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: &Block<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.Provided Methods§
unsafe fn URLSession_didBecomeInvalidWithError( &self, session: &NSURLSession, error: Option<&NSError> )
Available on crate feature
NSError
only.unsafe fn URLSession_didReceiveChallenge_completionHandler( &self, session: &NSURLSession, challenge: &NSURLAuthenticationChallenge, completion_handler: &Block<dyn Fn(NSURLSessionAuthChallengeDisposition, *mut NSURLCredential)> )
Available on crate features
NSURLAuthenticationChallenge
and NSURLCredential
and block2
only.