Struct s7_client::CoptDecoder
source · pub struct CoptDecoder<D>(pub D);Tuple Fields§
§0: DTrait Implementations§
source§impl<F, D> Decoder for CoptDecoder<D>where
F: Debug + Eq + PartialEq<F>,
D: Decoder<Item = F>,
<D as Decoder>::Error: ToCoptError + Send + Sync + 'static,
impl<F, D> Decoder for CoptDecoder<D>where F: Debug + Eq + PartialEq<F>, D: Decoder<Item = F>, <D as Decoder>::Error: ToCoptError + Send + Sync + 'static,
source§fn decode(
&mut self,
src: &mut BytesMut
) -> Result<Option<<CoptDecoder<D> as Decoder>::Item>, <CoptDecoder<D> as Decoder>::Error>
fn decode( &mut self, src: &mut BytesMut ) -> Result<Option<<CoptDecoder<D> as Decoder>::Item>, <CoptDecoder<D> as Decoder>::Error>
Attempts to decode a frame from the provided buffer of bytes. Read more
Auto Trait Implementations§
impl<D> RefUnwindSafe for CoptDecoder<D>where D: RefUnwindSafe,
impl<D> Send for CoptDecoder<D>where D: Send,
impl<D> Sync for CoptDecoder<D>where D: Sync,
impl<D> Unpin for CoptDecoder<D>where D: Unpin,
impl<D> UnwindSafe for CoptDecoder<D>where D: UnwindSafe,
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