Trait objc2_web_kit::WKURLSchemeTask

source ·
pub unsafe trait WKURLSchemeTask: NSObjectProtocol {
    // Provided methods
    unsafe fn request(&self) -> Retained<NSURLRequest>
       where Self: Sized + Message { ... }
    unsafe fn didReceiveResponse(&self, response: &NSURLResponse)
       where Self: Sized + Message { ... }
    unsafe fn didReceiveData(&self, data: &NSData)
       where Self: Sized + Message { ... }
    unsafe fn didFinish(&self)
       where Self: Sized + Message { ... }
    unsafe fn didFailWithError(&self, error: &NSError)
       where Self: Sized + Message { ... }
}
Available on crate feature WKURLSchemeTask only.

Provided Methods§

source

unsafe fn request(&self) -> Retained<NSURLRequest>
where Self: Sized + Message,

source

unsafe fn didReceiveResponse(&self, response: &NSURLResponse)
where Self: Sized + Message,

source

unsafe fn didReceiveData(&self, data: &NSData)
where Self: Sized + Message,

source

unsafe fn didFinish(&self)
where Self: Sized + Message,

source

unsafe fn didFailWithError(&self, error: &NSError)
where Self: Sized + Message,

Trait Implementations§

source§

impl ProtocolType for dyn WKURLSchemeTask

source§

const NAME: &'static str = "WKURLSchemeTask"

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 WKURLSchemeTask

Implementations on Foreign Types§

source§

impl<T> WKURLSchemeTask for ProtocolObject<T>
where T: ?Sized + WKURLSchemeTask,

Implementors§