Struct rf_distributed::platform::asynchronous::RuFiPlatform
source · pub struct RuFiPlatform { /* private fields */ }Expand description
This struct represents the platform on which the program is executed
Implementations§
source§impl RuFiPlatform
impl RuFiPlatform
sourcepub fn new(
mailbox: Box<dyn Mailbox>,
network: Box<dyn Network>,
context: Context,
discovery: Box<dyn Discovery>,
setup: Box<dyn NbrSensorSetup>
) -> Self
pub fn new( mailbox: Box<dyn Mailbox>, network: Box<dyn Network>, context: Context, discovery: Box<dyn Discovery>, setup: Box<dyn NbrSensorSetup> ) -> Self
Creates a new platform
sourcepub async fn run_forever<P, A>(self, program: P) -> Result<(), Box<dyn Error>>
pub async fn run_forever<P, A>(self, program: P) -> Result<(), Box<dyn Error>>
Runs indefinitely the program on the platform
Arguments
program- The aggregate program to be executed
Generic Arguments
Auto Trait Implementations§
impl !RefUnwindSafe for RuFiPlatform
impl !Send for RuFiPlatform
impl !Sync for RuFiPlatform
impl Unpin for RuFiPlatform
impl !UnwindSafe for RuFiPlatform
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