pub struct WebSocketReceive {
pub data: Bytes,
pub end_of_message: bool,
pub message_type: WebSocketMessageType,
}Expand description
The outcome of a single websocket receive.
Fields§
§data: BytesThe number of bytes carried by the message.
end_of_message: boolWhether this was the last chunk of the message.
message_type: WebSocketMessageTypeThe type of the message.
Trait Implementations§
Source§impl Clone for WebSocketReceive
impl Clone for WebSocketReceive
Source§impl Debug for WebSocketReceive
impl Debug for WebSocketReceive
impl Eq for WebSocketReceive
Source§impl PartialEq for WebSocketReceive
impl PartialEq for WebSocketReceive
impl StructuralPartialEq for WebSocketReceive
Auto Trait Implementations§
impl !Freeze for WebSocketReceive
impl RefUnwindSafe for WebSocketReceive
impl Send for WebSocketReceive
impl Sync for WebSocketReceive
impl Unpin for WebSocketReceive
impl UnsafeUnpin for WebSocketReceive
impl UnwindSafe for WebSocketReceive
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.