Enum fluvio_ws_stream_wasm::WsMessage [−][src]
Expand description
Represents a WebSocket Message, after converting from JavaScript type.
Variants
Text(String)
The data of the message is a string.
The message contains binary data.
Trait Implementations
impl Sink<WsMessage> for WsStream
[src]
impl Sink<WsMessage> for WsStream
[src]fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
[src]
fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
[src]Attempts to prepare the Sink
to receive a value. Read more
fn start_send(self: Pin<&mut Self>, item: WsMessage) -> Result<(), Self::Error>
[src]
fn start_send(self: Pin<&mut Self>, item: WsMessage) -> Result<(), Self::Error>
[src]Begin the process of sending a value to the sink.
Each call to this function must be preceded by a successful call to
poll_ready
which returned Poll::Ready(Ok(()))
. Read more
impl TryFrom<MessageEvent> for WsMessage
[src]
impl TryFrom<MessageEvent> for WsMessage
[src]This will convert the JavaScript event into a WsMessage. Note that this will only work if the connection is set to use the binary type ArrayBuffer. On binary type Blob, this will panic.
impl Eq for WsMessage
[src]
impl StructuralEq for WsMessage
[src]
impl StructuralPartialEq for WsMessage
[src]
Auto Trait Implementations
impl RefUnwindSafe for WsMessage
impl Send for WsMessage
impl Sync for WsMessage
impl Unpin for WsMessage
impl UnwindSafe for WsMessage
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more