Struct jsonrpc_server_utils::codecs::StreamCodec
source · [−]pub struct StreamCodec { /* private fields */ }
Expand description
Stream codec for streaming protocols (ipc, tcp)
Implementations
sourceimpl StreamCodec
impl StreamCodec
Trait Implementations
sourceimpl Debug for StreamCodec
impl Debug for StreamCodec
sourceimpl Decoder for StreamCodec
impl Decoder for StreamCodec
sourcefn decode(&mut self, buf: &mut BytesMut) -> Result<Option<Self::Item>>
fn decode(&mut self, buf: &mut BytesMut) -> Result<Option<Self::Item>>
Attempts to decode a frame from the provided buffer of bytes. Read more
sourceimpl Default for StreamCodec
impl Default for StreamCodec
sourcefn default() -> StreamCodec
fn default() -> StreamCodec
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for StreamCodec
impl Send for StreamCodec
impl Sync for StreamCodec
impl Unpin for StreamCodec
impl UnwindSafe for StreamCodec
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more