Trait objc2_foundation::NSURLProtocolClient

source ·
pub unsafe trait NSURLProtocolClient: NSObjectProtocol {
    // Provided methods
    unsafe fn URLProtocol_wasRedirectedToRequest_redirectResponse(
        &self,
        protocol: &NSURLProtocol,
        request: &NSURLRequest,
        redirect_response: &NSURLResponse
    )
       where Self: Sized + Message { ... }
    unsafe fn URLProtocol_cachedResponseIsValid(
        &self,
        protocol: &NSURLProtocol,
        cached_response: &NSCachedURLResponse
    )
       where Self: Sized + Message { ... }
    unsafe fn URLProtocol_didReceiveResponse_cacheStoragePolicy(
        &self,
        protocol: &NSURLProtocol,
        response: &NSURLResponse,
        policy: NSURLCacheStoragePolicy
    )
       where Self: Sized + Message { ... }
    unsafe fn URLProtocol_didLoadData(
        &self,
        protocol: &NSURLProtocol,
        data: &NSData
    )
       where Self: Sized + Message { ... }
    unsafe fn URLProtocolDidFinishLoading(&self, protocol: &NSURLProtocol)
       where Self: Sized + Message { ... }
    unsafe fn URLProtocol_didFailWithError(
        &self,
        protocol: &NSURLProtocol,
        error: &NSError
    )
       where Self: Sized + Message { ... }
    unsafe fn URLProtocol_didReceiveAuthenticationChallenge(
        &self,
        protocol: &NSURLProtocol,
        challenge: &NSURLAuthenticationChallenge
    )
       where Self: Sized + Message { ... }
    unsafe fn URLProtocol_didCancelAuthenticationChallenge(
        &self,
        protocol: &NSURLProtocol,
        challenge: &NSURLAuthenticationChallenge
    )
       where Self: Sized + Message { ... }
}
Available on crate feature NSURLProtocol only.

Provided Methods§

source

unsafe fn URLProtocol_wasRedirectedToRequest_redirectResponse( &self, protocol: &NSURLProtocol, request: &NSURLRequest, redirect_response: &NSURLResponse )
where Self: Sized + Message,

Available on crate features NSURLRequest and NSURLResponse only.
source

unsafe fn URLProtocol_cachedResponseIsValid( &self, protocol: &NSURLProtocol, cached_response: &NSCachedURLResponse )
where Self: Sized + Message,

Available on crate feature NSURLCache only.
source

unsafe fn URLProtocol_didReceiveResponse_cacheStoragePolicy( &self, protocol: &NSURLProtocol, response: &NSURLResponse, policy: NSURLCacheStoragePolicy )
where Self: Sized + Message,

Available on crate features NSURLCache and NSURLResponse only.
source

unsafe fn URLProtocol_didLoadData( &self, protocol: &NSURLProtocol, data: &NSData )
where Self: Sized + Message,

Available on crate feature NSData only.
source

unsafe fn URLProtocolDidFinishLoading(&self, protocol: &NSURLProtocol)
where Self: Sized + Message,

source

unsafe fn URLProtocol_didFailWithError( &self, protocol: &NSURLProtocol, error: &NSError )
where Self: Sized + Message,

Available on crate feature NSError only.
source

unsafe fn URLProtocol_didReceiveAuthenticationChallenge( &self, protocol: &NSURLProtocol, challenge: &NSURLAuthenticationChallenge )
where Self: Sized + Message,

Available on crate feature NSURLAuthenticationChallenge only.
source

unsafe fn URLProtocol_didCancelAuthenticationChallenge( &self, protocol: &NSURLProtocol, challenge: &NSURLAuthenticationChallenge )
where Self: Sized + Message,

Available on crate feature NSURLAuthenticationChallenge only.

Trait Implementations§

source§

impl ProtocolType for dyn NSURLProtocolClient

source§

const NAME: &'static str = "NSURLProtocolClient"

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 NSURLProtocolClient

Implementations on Foreign Types§

source§

impl<T> NSURLProtocolClient for ProtocolObject<T>

Implementors§