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 block2 and NSURLAuthenticationChallenge and NSURLCredential only.
unsafe fn URLSession_didReceiveChallenge_completionHandler( &self, session: &NSURLSession, challenge: &NSURLAuthenticationChallenge, completion_handler: &DynBlock<dyn Fn(NSURLSessionAuthChallengeDisposition, *mut NSURLCredential)>, )
block2 and NSURLAuthenticationChallenge and NSURLCredential only.§Safety
completion_handler block must be sendable.
fn URLSessionDidFinishEventsForBackgroundURLSession( &self, session: &NSURLSession, )
Trait Implementations§
Source§impl ProtocolType for dyn NSURLSessionDelegate
impl ProtocolType for dyn NSURLSessionDelegate
impl<T> ImplementedBy<T> for dyn NSURLSessionDelegate
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".