[−][src]Trait websocket::ws::receiver::Receiver
A trait for receiving data frames and messages.
Associated Types
type F: DataFrame
The type of dataframe that incoming messages will be serialized to.
type M: Message
The type of message that incoming messages will be serialized to.
Required Methods
fn recv_dataframe<R>(&mut self, reader: &mut R) -> WebSocketResult<Self::F> where
R: Read,
R: Read,
Reads a single data frame from this receiver.
fn recv_message_dataframes<R>(
&mut self,
reader: &mut R
) -> WebSocketResult<Vec<Self::F>> where
R: Read,
&mut self,
reader: &mut R
) -> WebSocketResult<Vec<Self::F>> where
R: Read,
Returns the data frames that constitute one message.
Provided Methods
ⓘImportant traits for DataFrameIterator<'a, Recv, R>
fn incoming_dataframes<'a, R>(
&'a mut self,
reader: &'a mut R
) -> DataFrameIterator<'a, Self, R> where
R: Read,
&'a mut self,
reader: &'a mut R
) -> DataFrameIterator<'a, Self, R> where
R: Read,
Returns an iterator over incoming data frames.
fn recv_message<R>(&mut self, reader: &mut R) -> WebSocketResult<Self::M> where
R: Read,
R: Read,
Reads a single message from this receiver.
ⓘImportant traits for MessageIterator<'a, Recv, R>
fn incoming_messages<'a, R>(
&'a mut self,
reader: &'a mut R
) -> MessageIterator<'a, Self, R> where
R: Read,
&'a mut self,
reader: &'a mut R
) -> MessageIterator<'a, Self, R> where
R: Read,
Returns an iterator over incoming messages.
Implementors
impl Receiver for Receiver
[src]
impl Receiver for Receiver
type F = DataFrame
type M = OwnedMessage
fn recv_dataframe<R>(&mut self, reader: &mut R) -> WebSocketResult<DataFrame> where
R: Read,
[src]
fn recv_dataframe<R>(&mut self, reader: &mut R) -> WebSocketResult<DataFrame> where
R: Read,
Reads a single data frame from the remote endpoint.
fn recv_message_dataframes<R>(
&mut self,
reader: &mut R
) -> WebSocketResult<Vec<DataFrame>> where
R: Read,
[src]
fn recv_message_dataframes<R>(
&mut self,
reader: &mut R
) -> WebSocketResult<Vec<DataFrame>> where
R: Read,
Returns the data frames that constitute one message.
ⓘImportant traits for DataFrameIterator<'a, Recv, R>fn incoming_dataframes<'a, R>(
&'a mut self,
reader: &'a mut R
) -> DataFrameIterator<'a, Self, R> where
R: Read,
[src]
ⓘImportant traits for DataFrameIterator<'a, Recv, R>
fn incoming_dataframes<'a, R>(
&'a mut self,
reader: &'a mut R
) -> DataFrameIterator<'a, Self, R> where
R: Read,
fn recv_message<R>(&mut self, reader: &mut R) -> WebSocketResult<Self::M> where
R: Read,
[src]
fn recv_message<R>(&mut self, reader: &mut R) -> WebSocketResult<Self::M> where
R: Read,
ⓘImportant traits for MessageIterator<'a, Recv, R>fn incoming_messages<'a, R>(
&'a mut self,
reader: &'a mut R
) -> MessageIterator<'a, Self, R> where
R: Read,
[src]
ⓘImportant traits for MessageIterator<'a, Recv, R>
fn incoming_messages<'a, R>(
&'a mut self,
reader: &'a mut R
) -> MessageIterator<'a, Self, R> where
R: Read,