pub struct ByteDecoderModel<T: Clone + Send + 'static, D: BufDecoder<T> + Send + 'static> {
pub data_out: Output<T>,
/* private fields */
}Expand description
Byte stream decoder model.
Fields§
§data_out: Output<T>Decoded data.
Implementations§
Source§impl<T, D> ByteDecoderModel<T, D>
impl<T, D> ByteDecoderModel<T, D>
Sourcepub async fn bytes_in(
&mut self,
data: Bytes,
_: &Context<Self>,
env: &mut D::DecoderEnv,
)
pub async fn bytes_in( &mut self, data: Bytes, _: &Context<Self>, env: &mut D::DecoderEnv, )
Input bytes – input port.
Trait Implementations§
Source§impl<T, D> Debug for ByteDecoderModel<T, D>
impl<T, D> Debug for ByteDecoderModel<T, D>
Source§impl<'de, T: Clone + Send + 'static, D: BufDecoder<T> + Send + 'static> Deserialize<'de> for ByteDecoderModel<T, D>
impl<'de, T: Clone + Send + 'static, D: BufDecoder<T> + Send + 'static> Deserialize<'de> for ByteDecoderModel<T, D>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T, D> Model for ByteDecoderModel<T, D>
impl<T, D> Model for ByteDecoderModel<T, D>
Source§type Env = <D as BufDecoder<T>>::DecoderEnv
type Env = <D as BufDecoder<T>>::DecoderEnv
Helper struct for internal non-state model data that cannot (or should
not) be serialized and persisted.
Source§fn register_schedulables(
cx: &mut BuildContext<'_, impl ProtoModel<Model = Self>>,
) -> ModelRegistry
fn register_schedulables( cx: &mut BuildContext<'_, impl ProtoModel<Model = Self>>, ) -> ModelRegistry
Generates a registry of inputs schedulable with the
schedulable!
macro. Read moreAuto Trait Implementations§
impl<T, D> !RefUnwindSafe for ByteDecoderModel<T, D>
impl<T, D> !Sync for ByteDecoderModel<T, D>
impl<T, D> !UnwindSafe for ByteDecoderModel<T, D>
impl<T, D> Freeze for ByteDecoderModel<T, D>
impl<T, D> Send for ByteDecoderModel<T, D>
impl<T, D> Unpin for ByteDecoderModel<T, D>
impl<T, D> UnsafeUnpin for ByteDecoderModel<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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<M, E> ProtoModel for M
impl<M, E> ProtoModel for M
Source§fn build(
self,
_: &mut BuildContext<'_, M>,
) -> (<M as ProtoModel>::Model, <<M as ProtoModel>::Model as Model>::Env)
fn build( self, _: &mut BuildContext<'_, M>, ) -> (<M as ProtoModel>::Model, <<M as ProtoModel>::Model as Model>::Env)
Builds the model. Read more