pub struct ProtoByteDecoder<T: Clone + Send + 'static, D: BufDecoder<T> + Send + 'static> {
pub data_out: Output<T>,
/* private fields */
}Expand description
Byte stream decoder model prototype.
Fields§
§data_out: Output<T>Decoded data.
Implementations§
Source§impl<T, D> ProtoByteDecoder<T, D>
impl<T, D> ProtoByteDecoder<T, D>
Sourcepub fn new(decoder: D, decoder_env: D::DecoderEnv) -> Self
pub fn new(decoder: D, decoder_env: D::DecoderEnv) -> Self
Creates new byte stream decoder model.
Trait Implementations§
Source§impl<T, D> Debug for ProtoByteDecoder<T, D>
impl<T, D> Debug for ProtoByteDecoder<T, D>
Source§impl<T, D> Default for ProtoByteDecoder<T, D>where
T: Clone + Send + 'static,
D: BufDecoder<T> + Default + Send + 'static,
D::DecoderEnv: Default,
impl<T, D> Default for ProtoByteDecoder<T, D>where
T: Clone + Send + 'static,
D: BufDecoder<T> + Default + Send + 'static,
D::DecoderEnv: Default,
Source§impl<T, D> ProtoModel for ProtoByteDecoder<T, D>
impl<T, D> ProtoModel for ProtoByteDecoder<T, D>
Source§type Model = ByteDecoderModel<T, D>
type Model = ByteDecoderModel<T, D>
Type of the model to be built.
Source§fn build(
self,
_: &mut BuildContext<'_, Self>,
) -> (ByteDecoderModel<T, D>, D::DecoderEnv)
fn build( self, _: &mut BuildContext<'_, Self>, ) -> (ByteDecoderModel<T, D>, D::DecoderEnv)
Builds the model. Read more
Auto Trait Implementations§
impl<T, D> !RefUnwindSafe for ProtoByteDecoder<T, D>
impl<T, D> !Sync for ProtoByteDecoder<T, D>
impl<T, D> !UnwindSafe for ProtoByteDecoder<T, D>
impl<T, D> Freeze for ProtoByteDecoder<T, D>
impl<T, D> Send for ProtoByteDecoder<T, D>
impl<T, D> Unpin for ProtoByteDecoder<T, D>
impl<T, D> UnsafeUnpin for ProtoByteDecoder<T, D>
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