pub enum ReceiveMessage<D>{
Signal(Vec<u8>),
Request(D, WebsocketRespond),
}
Expand description
Types of messages that can be received by a WebsocketReceiver.
Variants§
Signal(Vec<u8>)
Received a signal from the remote.
Request(D, WebsocketRespond)
Received a request from the remote.
Trait Implementations§
source§impl<D> Debug for ReceiveMessage<D>
impl<D> Debug for ReceiveMessage<D>
source§impl<D> PartialEq for ReceiveMessage<D>
impl<D> PartialEq for ReceiveMessage<D>
source§fn eq(&self, other: &ReceiveMessage<D>) -> bool
fn eq(&self, other: &ReceiveMessage<D>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<D> StructuralPartialEq for ReceiveMessage<D>
Auto Trait Implementations§
impl<D> RefUnwindSafe for ReceiveMessage<D>where
D: RefUnwindSafe,
impl<D> Send for ReceiveMessage<D>where
D: Send,
impl<D> Sync for ReceiveMessage<D>where
D: Sync,
impl<D> Unpin for ReceiveMessage<D>where
D: Unpin,
impl<D> UnwindSafe for ReceiveMessage<D>where
D: UnwindSafe,
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