Skip to main content

NSURLHandleClient

Trait NSURLHandleClient 

Source
pub unsafe trait NSURLHandleClient {
    // Provided methods
    unsafe fn URLHandle_resourceDataDidBecomeAvailable(
        &self,
        sender: Option<&NSURLHandle>,
        new_bytes: Option<&NSData>,
    )
       where Self: Sized + Message { ... }
    unsafe fn URLHandleResourceDidBeginLoading(
        &self,
        sender: Option<&NSURLHandle>,
    )
       where Self: Sized + Message { ... }
    unsafe fn URLHandleResourceDidFinishLoading(
        &self,
        sender: Option<&NSURLHandle>,
    )
       where Self: Sized + Message { ... }
    unsafe fn URLHandleResourceDidCancelLoading(
        &self,
        sender: Option<&NSURLHandle>,
    )
       where Self: Sized + Message { ... }
    unsafe fn URLHandle_resourceDidFailLoadingWithReason(
        &self,
        sender: Option<&NSURLHandle>,
        reason: Option<&NSString>,
    )
       where Self: Sized + Message { ... }
}
👎Deprecated
Available on crate feature NSURLHandle only.
Expand description

Provided Methods§

Source

unsafe fn URLHandle_resourceDataDidBecomeAvailable( &self, sender: Option<&NSURLHandle>, new_bytes: Option<&NSData>, )
where Self: Sized + Message,

👎Deprecated
Available on crate feature NSData only.
§Safety
  • sender might not allow None.
  • new_bytes might not allow None.
Source

unsafe fn URLHandleResourceDidBeginLoading(&self, sender: Option<&NSURLHandle>)
where Self: Sized + Message,

👎Deprecated
§Safety

sender might not allow None.

Source

unsafe fn URLHandleResourceDidFinishLoading(&self, sender: Option<&NSURLHandle>)
where Self: Sized + Message,

👎Deprecated
§Safety

sender might not allow None.

Source

unsafe fn URLHandleResourceDidCancelLoading(&self, sender: Option<&NSURLHandle>)
where Self: Sized + Message,

👎Deprecated
§Safety

sender might not allow None.

Source

unsafe fn URLHandle_resourceDidFailLoadingWithReason( &self, sender: Option<&NSURLHandle>, reason: Option<&NSString>, )
where Self: Sized + Message,

👎Deprecated
Available on crate feature NSString only.
§Safety
  • sender might not allow None.
  • reason might not allow None.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSURLHandleClient

Source§

impl ProtocolType for dyn NSURLHandleClient

Source§

const NAME: &'static str = "NSURLHandleClient"

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> NSURLHandleClient for ProtocolObject<T>

Implementors§