Trait objc2_foundation::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: &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§

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: &Block<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.
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§