Struct jsonrpc_server_utils::codecs::StreamCodec [−][src]
pub struct StreamCodec { /* fields omitted */ }
Stream codec for streaming protocols (ipc, tcp)
Implementations
impl StreamCodec
[src]
impl StreamCodec
[src]Trait Implementations
impl Decoder for StreamCodec
[src]
impl Decoder for StreamCodec
[src]type Item = String
The type of decoded frames.
type Error = Error
The type of unrecoverable frame decoding errors. Read more
fn decode(&mut self, buf: &mut BytesMut) -> Result<Option<Self::Item>>
[src]
pub fn decode_eof(
&mut self,
buf: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
[src]
&mut self,
buf: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
pub fn framed<T>(self, io: T) -> Framed<T, Self> where
Self: Encoder,
T: AsyncRead + AsyncWrite,
[src]
Self: Encoder,
T: AsyncRead + AsyncWrite,
impl Default for StreamCodec
[src]
impl Default for StreamCodec
[src]