pub struct ReceiverMachine { /* private fields */ }Expand description
Manages the state of all active receiving (‘destination’) transactions.
This struct holds a map of all transactions for which this entity is the receiver.
It should be driven by a Runner which feeds it events and executes the
resulting actions.
Implementations§
Source§impl ReceiverMachine
impl ReceiverMachine
Sourcepub fn handle<'a>(
&mut self,
file_store: &mut impl FileStore,
event: Event<'a>,
actions: &mut Actions<'a>,
) -> Result<(), CfdpError>
pub fn handle<'a>( &mut self, file_store: &mut impl FileStore, event: Event<'a>, actions: &mut Actions<'a>, ) -> Result<(), CfdpError>
The primary state machine logic for the receiver.
It takes an Event as input and returns a Vec of Actions for the
Runner to execute. This function is pure and has no side effects.
Trait Implementations§
Source§impl Debug for ReceiverMachine
impl Debug for ReceiverMachine
Source§impl Default for ReceiverMachine
impl Default for ReceiverMachine
Source§fn default() -> ReceiverMachine
fn default() -> ReceiverMachine
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReceiverMachine
impl RefUnwindSafe for ReceiverMachine
impl Send for ReceiverMachine
impl Sync for ReceiverMachine
impl Unpin for ReceiverMachine
impl UnsafeUnpin for ReceiverMachine
impl UnwindSafe for ReceiverMachine
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