pub unsafe trait NSURLSessionWebSocketDelegate: NSURLSessionTaskDelegate {
// Provided methods
unsafe fn URLSession_webSocketTask_didOpenWithProtocol(
&self,
session: &NSURLSession,
web_socket_task: &NSURLSessionWebSocketTask,
protocol: Option<&NSString>
)
where Self: Sized + Message { ... }
unsafe fn URLSession_webSocketTask_didCloseWithCode_reason(
&self,
session: &NSURLSession,
web_socket_task: &NSURLSessionWebSocketTask,
close_code: NSURLSessionWebSocketCloseCode,
reason: Option<&NSData>
)
where Self: Sized + Message { ... }
}
Available on crate feature
NSURLSession
only.Provided Methods§
unsafe fn URLSession_webSocketTask_didOpenWithProtocol( &self, session: &NSURLSession, web_socket_task: &NSURLSessionWebSocketTask, protocol: Option<&NSString> )
Available on crate feature
NSString
only.unsafe fn URLSession_webSocketTask_didCloseWithCode_reason( &self, session: &NSURLSession, web_socket_task: &NSURLSessionWebSocketTask, close_code: NSURLSessionWebSocketCloseCode, reason: Option<&NSData> )
Available on crate feature
NSData
only.