Skip to main content

NSURLSessionDelegate

Trait NSURLSessionDelegate 

Source
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§

Source

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 block2 and NSURLAuthenticationChallenge and NSURLCredential only.
§Safety

completion_handler block must be sendable.

Source

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

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSURLSessionDelegate

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> NSURLSessionDelegate for ProtocolObject<T>

Implementors§