Struct opcua_server::prelude::TcpCodec
source · [−]pub struct TcpCodec { /* private fields */ }
Expand description
Implements a tokio codec that as close as possible, allows incoming data to be transformed into OPC UA message chunks with no intermediate buffers. Chunks are subsequently transformed into messages so there is still some buffers within message chunks, but not at the raw socket level.
Implementations
Trait Implementations
sourceimpl Decoder for TcpCodec
impl Decoder for TcpCodec
sourcefn decode(
&mut self,
buf: &mut BytesMut
) -> Result<Option<<TcpCodec as Decoder>::Item>, <TcpCodec as Decoder>::Error>
fn decode(
&mut self,
buf: &mut BytesMut
) -> Result<Option<<TcpCodec as Decoder>::Item>, <TcpCodec as Decoder>::Error>
Attempts to decode a frame from the provided buffer of bytes. Read more
Auto Trait Implementations
impl RefUnwindSafe for TcpCodec
impl Send for TcpCodec
impl Sync for TcpCodec
impl Unpin for TcpCodec
impl UnwindSafe for TcpCodec
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more