pub struct CaskReplay { /* private fields */ }Expand description
Reads messages from a cask and provides transmitting channels of arbitrary type.
Implementations§
Source§impl CaskReplay
impl CaskReplay
pub fn new( path: &Path, termination_control: SyncSender<RuntimeControl>, ) -> Result<Self>
Trait Implementations§
Source§impl Codelet for CaskReplay
impl Codelet for CaskReplay
Source§type Status = CaskReplayStatus
type Status = CaskReplayStatus
Status code used to indicate health of codelet
Source§type Config = CaskReplayConfig
type Config = CaskReplayConfig
Type used for configuration
Source§type Tx = CaskReplayTxBundle
type Tx = CaskReplayTxBundle
Type holding all transmitting (TX) endpoints
Source§fn step(
&mut self,
cx: Context<'_, Self>,
_rx: &mut Self::Rx,
tx: &mut Self::Tx,
) -> Result<CaskReplayStatus>
fn step( &mut self, cx: Context<'_, Self>, _rx: &mut Self::Rx, tx: &mut Self::Tx, ) -> Result<CaskReplayStatus>
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 Freeze for CaskReplay
impl !RefUnwindSafe for CaskReplay
impl Send for CaskReplay
impl !Sync for CaskReplay
impl Unpin for CaskReplay
impl !UnwindSafe for CaskReplay
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