Skip to main content

SCStreamDelegate

Trait SCStreamDelegate 

Source
pub unsafe trait SCStreamDelegate: NSObjectProtocol {
    // Provided method
    unsafe fn stream_did_stop_with_error(
        &self,
        stream: &SCStream,
        error: &NSError,
    )
       where Self: Sized + Message { ... }
}

Provided Methods§

Source

unsafe fn stream_did_stop_with_error(&self, stream: &SCStream, error: &NSError)
where Self: Sized + Message,

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn SCStreamDelegate

Source§

impl ProtocolType for dyn SCStreamDelegate

Source§

const NAME: &'static str = "SCStreamDelegate"

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> SCStreamDelegate for ProtocolObject<T>
where T: ?Sized + SCStreamDelegate,

Implementors§