pub struct Convert<T, S> { /* private fields */ }Expand description
A codelet which converts messages using the Into trait.
Trait Implementations§
Source§impl<T, S> Codelet for Convert<T, S>
impl<T, S> Codelet for Convert<T, S>
Source§type Status = DefaultStatus
type Status = DefaultStatus
Status code used to indicate health of codelet
Source§type Rx = DoubleBufferRx<T>
type Rx = DoubleBufferRx<T>
Type holding all receiving (RX) endpoints
Source§type Tx = DoubleBufferTx<S>
type Tx = DoubleBufferTx<S>
Type holding all transmitting (TX) endpoints
Source§fn step(
&mut self,
_: Context<'_, Self>,
rx: &mut Self::Rx,
tx: &mut Self::Tx,
) -> Outcome
fn step( &mut self, _: 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, S> Freeze for Convert<T, S>
impl<T, S> RefUnwindSafe for Convert<T, S>where
T: RefUnwindSafe,
S: RefUnwindSafe,
impl<T, S> Send for Convert<T, S>
impl<T, S> Sync for Convert<T, S>
impl<T, S> Unpin for Convert<T, S>
impl<T, S> UnwindSafe for Convert<T, S>where
T: UnwindSafe,
S: 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