Enum websocket_util::wrap::Message
source · pub enum Message {
Text(String),
Binary(Vec<u8>),
}Expand description
A message received over a Wrapper.
Variants§
Trait Implementations§
source§impl PartialEq<Message> for Message
impl PartialEq<Message> for Message
source§impl<S> Sink<Message> for Wrapper<S>where
S: Sink<WebSocketMessage, Error = WebSocketError> + Unpin,
impl<S> Sink<Message> for Wrapper<S>where S: Sink<WebSocketMessage, Error = WebSocketError> + Unpin,
source§fn poll_ready(
self: Pin<&mut Self>,
ctx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
fn poll_ready( self: Pin<&mut Self>, ctx: &mut Context<'_> ) -> Poll<Result<(), Self::Error>>
Attempts to prepare the
Sink to receive a value. Read moresource§fn start_send(self: Pin<&mut Self>, message: Message) -> Result<(), Self::Error>
fn start_send(self: Pin<&mut Self>, message: Message) -> Result<(), Self::Error>
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 moreimpl StructuralPartialEq for Message
Auto Trait Implementations§
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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