Struct stream_ws::gloo::WsMessageHandler
source · 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>where S: Stream<Item = Result<Msg, E>> + Sink<Msg, Error = E> + Unpin,
Auto Trait Implementations§
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