pub struct WsMessageHandler;Available on crate feature
gloo only.Trait Implementations§
Source§impl WsMessageHandle<Message, WebSocketError> for WsMessageHandler
impl WsMessageHandle<Message, WebSocketError> for WsMessageHandler
fn message_into_kind(msg: Message) -> WsMessageKind
fn error_into_kind(e: Error) -> WsErrorKind
Source§fn message_from_bytes<T: Into<Vec<u8>>>(bytes: T) -> Message
fn message_from_bytes<T: Into<Vec<u8>>>(bytes: T) -> Message
These bytes will be carried by the
Msg and sent by the underlying stream.fn wrap_stream<S>(inner: S) -> WsByteStream<S, Msg, E, Self>
Auto Trait Implementations§
impl Freeze for WsMessageHandler
impl RefUnwindSafe for WsMessageHandler
impl Send for WsMessageHandler
impl Sync for WsMessageHandler
impl Unpin for WsMessageHandler
impl UnwindSafe for WsMessageHandler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more