pub unsafe trait NSURLSessionDelegate:
NSObjectProtocol
+ Send
+ Sync {
// Provided methods
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 { ... }
fn URLSessionDidFinishEventsForBackgroundURLSession(
&self,
session: &NSURLSession,
)
where Self: Sized + Message { ... }
}Available on crate feature
NSURLSession only.Expand description
Provided Methods§
fn URLSession_didBecomeInvalidWithError( &self, session: &NSURLSession, error: Option<&NSError>, )
Available on crate feature
NSError only.Sourceunsafe fn URLSession_didReceiveChallenge_completionHandler(
&self,
session: &NSURLSession,
challenge: &NSURLAuthenticationChallenge,
completion_handler: &DynBlock<dyn Fn(NSURLSessionAuthChallengeDisposition, *mut NSURLCredential)>,
)
Available on crate features NSURLAuthenticationChallenge and NSURLCredential and block2 only.
unsafe fn URLSession_didReceiveChallenge_completionHandler( &self, session: &NSURLSession, challenge: &NSURLAuthenticationChallenge, completion_handler: &DynBlock<dyn Fn(NSURLSessionAuthChallengeDisposition, *mut NSURLCredential)>, )
NSURLAuthenticationChallenge and NSURLCredential and block2 only.§Safety
completion_handler block must be sendable.