pub struct SystemRunner { /* private fields */ }Expand description
Helper object that runs System’s event loop
Implementations§
Source§impl SystemRunner
impl SystemRunner
Sourcepub fn run_until_stop(self) -> Result<(), Error>
pub fn run_until_stop(self) -> Result<(), Error>
This function will start event loop and will finish once the
System::stop() function is called.
Sourcepub fn run<F>(self, f: F) -> Result<(), Error>
pub fn run<F>(self, f: F) -> Result<(), Error>
This function will start event loop and will finish once the
System::stop() function is called.
Auto Trait Implementations§
impl Freeze for SystemRunner
impl !RefUnwindSafe for SystemRunner
impl !Send for SystemRunner
impl !Sync for SystemRunner
impl !Unpin for SystemRunner
impl !UnwindSafe for SystemRunner
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