pub struct Serializer<T, BF> { /* private fields */ }Expand description
A codelet which serializes a message
Implementations§
Source§impl<T, BF> Serializer<T, BF>
impl<T, BF> Serializer<T, BF>
Trait Implementations§
Source§impl<T, BF> Codelet for Serializer<T, BF>
impl<T, BF> Codelet for Serializer<T, BF>
Source§type Status = DefaultStatus
type Status = DefaultStatus
Status code used to indicate health of codelet
Source§type Config = SerializerConfig
type Config = SerializerConfig
Type used for configuration
Source§type Rx = DoubleBufferRx<Message<T>>
type Rx = DoubleBufferRx<Message<T>>
Type holding all receiving (RX) endpoints
Source§fn step(
&mut self,
cx: Context<'_, Self>,
rx: &mut Self::Rx,
tx: &mut Self::Tx,
) -> Outcome
fn step( &mut self, cx: Context<'_, Self>, rx: &mut Self::Rx, tx: &mut Self::Tx, ) -> Outcome
Step is executed periodically after the codelet is started and while it is not paused.
Source§fn start(
&mut self,
_cx: Context<'_, Self>,
_rx: &mut Self::Rx,
_tx: &mut Self::Tx,
) -> Result<Self::Status, Report>
fn start( &mut self, _cx: Context<'_, Self>, _rx: &mut Self::Rx, _tx: &mut Self::Tx, ) -> Result<Self::Status, Report>
Start is guaranteed to be called first. Start may be called again after stop was called.
Auto Trait Implementations§
impl<T, BF> Freeze for Serializer<T, BF>where
BF: Freeze,
impl<T, BF> RefUnwindSafe for Serializer<T, BF>where
BF: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, BF> Send for Serializer<T, BF>
impl<T, BF> Sync for Serializer<T, BF>
impl<T, BF> Unpin for Serializer<T, BF>
impl<T, BF> UnwindSafe for Serializer<T, BF>where
BF: UnwindSafe,
T: 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