Trait IWebSocket_Impl
pub trait IWebSocket_Impl: IClosable_Impl {
// Required methods
fn OutputStream(&self) -> Result<IOutputStream>;
fn ConnectAsync(&self, uri: Ref<'_, Uri>) -> Result<IAsyncAction>;
fn SetRequestHeader(
&self,
headerName: &HSTRING,
headerValue: &HSTRING,
) -> Result<()>;
fn Closed(
&self,
eventHandler: Ref<'_, TypedEventHandler<IWebSocket, WebSocketClosedEventArgs>>,
) -> Result<i64>;
fn RemoveClosed(&self, eventCookie: i64) -> Result<()>;
fn CloseWithStatus(&self, code: u16, reason: &HSTRING) -> Result<()>;
}
Required Methods§
fn OutputStream(&self) -> Result<IOutputStream>
fn ConnectAsync(&self, uri: Ref<'_, Uri>) -> Result<IAsyncAction>
fn SetRequestHeader( &self, headerName: &HSTRING, headerValue: &HSTRING, ) -> Result<()>
fn Closed( &self, eventHandler: Ref<'_, TypedEventHandler<IWebSocket, WebSocketClosedEventArgs>>, ) -> Result<i64>
fn RemoveClosed(&self, eventCookie: i64) -> Result<()>
fn CloseWithStatus(&self, code: u16, reason: &HSTRING) -> Result<()>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.