pub struct RuFiPlatform<M, N, D, S>{ /* private fields */ }
Expand description
This struct represents the platform on which the program is executed
Implementations§
Source§impl<M, N, D, S> RuFiPlatform<M, N, D, S>
impl<M, N, D, S> RuFiPlatform<M, N, D, S>
Sourcepub fn new(
mailbox: M,
network: N,
context: Context,
discovery: D,
setup: S,
) -> Self
pub fn new( mailbox: M, network: N, context: Context, discovery: D, setup: S, ) -> 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>>
pub async fn run_n_cycles<P, A>( self, program: P, n: usize, ) -> Result<(), Box<dyn Error>>
Auto Trait Implementations§
impl<M, N, D, S> Freeze for RuFiPlatform<M, N, D, S>
impl<M, N, D, S> !RefUnwindSafe for RuFiPlatform<M, N, D, S>
impl<M, N, D, S> !Send for RuFiPlatform<M, N, D, S>
impl<M, N, D, S> !Sync for RuFiPlatform<M, N, D, S>
impl<M, N, D, S> Unpin for RuFiPlatform<M, N, D, S>
impl<M, N, D, S> !UnwindSafe for RuFiPlatform<M, N, D, S>
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