pub struct Identity<T> { /* private fields */ }Expand description
Forwards messages as is
Trait Implementations§
Source§impl<T> Codelet for Identity<T>
impl<T> Codelet for Identity<T>
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<T>
type Tx = DoubleBufferTx<T>
Type holding all transmitting (TX) endpoints
Source§fn start(
&mut self,
_cx: Context<'_, Self>,
rx: &mut Self::Rx,
tx: &mut Self::Tx,
) -> Outcome
fn start( &mut self, _cx: Context<'_, Self>, rx: &mut Self::Rx, tx: &mut Self::Tx, ) -> Outcome
Start is guaranteed to be called first. Start may be called again after stop was called.
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.
Auto Trait Implementations§
impl<T> Freeze for Identity<T>
impl<T> RefUnwindSafe for Identity<T>where
T: RefUnwindSafe,
impl<T> Send for Identity<T>where
T: Send,
impl<T> Sync for Identity<T>where
T: Sync,
impl<T> Unpin for Identity<T>where
T: Unpin,
impl<T> UnwindSafe for Identity<T>where
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