Trait objc2_foundation::NSURLConnectionDelegate

source ·
pub unsafe trait NSURLConnectionDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn connection_didFailWithError(
        &self,
        connection: &NSURLConnection,
        error: &NSError
    )
       where Self: Sized + Message { ... }
    unsafe fn connectionShouldUseCredentialStorage(
        &self,
        connection: &NSURLConnection
    ) -> bool
       where Self: Sized + Message { ... }
    unsafe fn connection_willSendRequestForAuthenticationChallenge(
        &self,
        connection: &NSURLConnection,
        challenge: &NSURLAuthenticationChallenge
    )
       where Self: Sized + Message { ... }
    unsafe fn connection_canAuthenticateAgainstProtectionSpace(
        &self,
        connection: &NSURLConnection,
        protection_space: &NSURLProtectionSpace
    ) -> bool
       where Self: Sized + Message { ... }
    unsafe fn connection_didReceiveAuthenticationChallenge(
        &self,
        connection: &NSURLConnection,
        challenge: &NSURLAuthenticationChallenge
    )
       where Self: Sized + Message { ... }
    unsafe fn connection_didCancelAuthenticationChallenge(
        &self,
        connection: &NSURLConnection,
        challenge: &NSURLAuthenticationChallenge
    )
       where Self: Sized + Message { ... }
}
Available on crate feature NSURLConnection only.

Provided Methods§

source

unsafe fn connection_didFailWithError( &self, connection: &NSURLConnection, error: &NSError )
where Self: Sized + Message,

Available on crate feature NSError only.
source

unsafe fn connectionShouldUseCredentialStorage( &self, connection: &NSURLConnection ) -> bool
where Self: Sized + Message,

source

unsafe fn connection_willSendRequestForAuthenticationChallenge( &self, connection: &NSURLConnection, challenge: &NSURLAuthenticationChallenge )
where Self: Sized + Message,

Available on crate feature NSURLAuthenticationChallenge only.
source

unsafe fn connection_canAuthenticateAgainstProtectionSpace( &self, connection: &NSURLConnection, protection_space: &NSURLProtectionSpace ) -> bool
where Self: Sized + Message,

👎Deprecated: Use -connection:willSendRequestForAuthenticationChallenge: instead.
Available on crate feature NSURLProtectionSpace only.
source

unsafe fn connection_didReceiveAuthenticationChallenge( &self, connection: &NSURLConnection, challenge: &NSURLAuthenticationChallenge )
where Self: Sized + Message,

👎Deprecated: Use -connection:willSendRequestForAuthenticationChallenge: instead.
Available on crate feature NSURLAuthenticationChallenge only.
source

unsafe fn connection_didCancelAuthenticationChallenge( &self, connection: &NSURLConnection, challenge: &NSURLAuthenticationChallenge )
where Self: Sized + Message,

👎Deprecated: Use -connection:willSendRequestForAuthenticationChallenge: instead.
Available on crate feature NSURLAuthenticationChallenge only.

Trait Implementations§

source§

impl ProtocolType for dyn NSURLConnectionDelegate

source§

const NAME: &'static str = "NSURLConnectionDelegate"

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 NSURLConnectionDelegate

Implementations on Foreign Types§

source§

impl<T> NSURLConnectionDelegate for ProtocolObject<T>

Implementors§