pub struct Buffer<M> { /* private fields */ }
Expand description
Stores all received messages in memory
Implementations§
Trait Implementations§
Source§impl<M: Clone + Send + Sync> Codelet for Buffer<M>
impl<M: Clone + Send + Sync> Codelet for Buffer<M>
Source§type Status = DefaultStatus
type Status = DefaultStatus
Status code used to indicate health of codelet
Source§type Config = BufferConfig
type Config = BufferConfig
Type used for configuration
Source§type Rx = DoubleBufferRx<M>
type Rx = DoubleBufferRx<M>
Type holding all receiving (RX) endpoints
Source§fn step(
&mut self,
cx: Context<'_, Self>,
rx: &mut Self::Rx,
_: &mut Self::Tx,
) -> Outcome
fn step( &mut self, cx: Context<'_, Self>, rx: &mut Self::Rx, _: &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<M> Freeze for Buffer<M>
impl<M> RefUnwindSafe for Buffer<M>
impl<M> Send for Buffer<M>
impl<M> Sync for Buffer<M>
impl<M> Unpin for Buffer<M>
impl<M> UnwindSafe for Buffer<M>
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