pub struct Pipe<T, S, F> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<T, S, F> Codelet for Pipe<T, S, F>
impl<T, S, F> Codelet for Pipe<T, S, F>
Source§type Status = DefaultStatus
type Status = DefaultStatus
Status code used to indicate health of codelet
Source§type Config = PipeConfig
type Config = PipeConfig
Type used for configuration
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 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,
ctx: &Context<'_, Self>,
rx: &mut Self::Rx,
tx: &mut Self::Tx,
) -> Outcome
fn step( &mut self, ctx: &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, S, F> Freeze for Pipe<T, S, F>where
F: Freeze,
impl<T, S, F> RefUnwindSafe for Pipe<T, S, F>
impl<T, S, F> Send for Pipe<T, S, F>
impl<T, S, F> Sync for Pipe<T, S, F>
impl<T, S, F> Unpin for Pipe<T, S, F>
impl<T, S, F> UnwindSafe for Pipe<T, S, F>
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